Commit 0e21cf94 by 袁伟铭

添加token登录方法

parent 64a47c99
......@@ -126,7 +126,8 @@ public class SingleService {
}
ResultVo resultVo = JSONUtil.toBean(body, ResultVo.class);
if (resultVo.isSuccess()) {
AssertUtils.isTrue(resultVo.isSuccess(), resultVo.getErrMsg());
JSONObject obj = JSONUtil.parseObj(resultVo.getData());
String userId = obj.getStr("userId");
String username = obj.getStr("username");
......@@ -141,7 +142,6 @@ public class SingleService {
blindUserInfoDao.insert(build);
}
}
public Object login(SingleLoginVo vo, HttpServletRequest request, HttpServletResponse response) {
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment