修改代码

parent f51a7468
......@@ -152,8 +152,8 @@ public class InnerController implements IBaseController {
}
User user = userService.findByUuidInDb(uuid);
if(null!=user){
if(user.getEnable()==false){
return JsonResult.buildErrorStateResult("", null);
if(!user.getEnable()){
return JsonResult.buildSuccessResult("", null);
}
UserDetail userDetail = userDetailService.findByUserId(user.getId());
UserInfo info = new UserInfo(user,userDetail);
......@@ -171,8 +171,8 @@ public class InnerController implements IBaseController {
}
User user = userService.findByPhoneInDb(phone);
if(null!=user){
if(user.getEnable()==false){
return JsonResult.buildErrorStateResult("", null);
if(!user.getEnable()){
return JsonResult.buildSuccessResult("", null);
}
UserDetail userDetail = userDetailService.findByUserId(user.getId());
UserInfo info = new UserInfo(user,userDetail);
......
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