|
@@ -193,10 +193,10 @@ public class UserServiceImpl implements UserService {
|
|
|
}
|
|
|
switch (isExistUser.getState()) {
|
|
|
case ConstantStr.NORMAL_USE:
|
|
|
- String userId = Convert.toStr(redisUtil.get(ConstantStr.BACK_USER_String + isExistUser.getUserId()));
|
|
|
- if (Blank.isNotEmpty(userId)) {
|
|
|
- return Result.no(ResultEnum.SERVER_ERROR.getRespCode(), "此账号在其他地方登录,请勿重新登录");
|
|
|
- }
|
|
|
+// String userId = Convert.toStr(redisUtil.get(ConstantStr.BACK_USER_String + isExistUser.getUserId()));
|
|
|
+// if (Blank.isNotEmpty(userId)) {
|
|
|
+// return Result.no(ResultEnum.SERVER_ERROR.getRespCode(), "此账号在其他地方登录,请勿重新登录");
|
|
|
+// }
|
|
|
List<Role> roleList = userDao.getRoleListByUserId(isExistUser.getUserId());
|
|
|
JSONObject json = new JSONObject();
|
|
|
isExistUser.setPassword("");
|
|
@@ -598,10 +598,10 @@ public class UserServiceImpl implements UserService {
|
|
|
redisUtil.del(user.getUid() + "-captcha");
|
|
|
switch (isExistUser.getState()) {
|
|
|
case ConstantStr.NORMAL_USE:
|
|
|
- String userId = Convert.toStr(redisUtil.get(ConstantStr.PHONE_USER_String + isExistUser.getUserId()));
|
|
|
- if (Blank.isNotEmpty(userId)) {
|
|
|
- return Result.no(ResultEnum.SERVER_ERROR.getRespCode(), "此账号在其他地方登录,请勿重新登录");
|
|
|
- }
|
|
|
+// String userId = Convert.toStr(redisUtil.get(ConstantStr.PHONE_USER_String + isExistUser.getUserId()));
|
|
|
+// if (Blank.isNotEmpty(userId)) {
|
|
|
+// return Result.no(ResultEnum.SERVER_ERROR.getRespCode(), "此账号在其他地方登录,请勿重新登录");
|
|
|
+// }
|
|
|
JSONObject json = new JSONObject();
|
|
|
isExistUser.setPassword("");
|
|
|
//生成token
|