Commit 07a27d33 authored by hezhen's avatar hezhen

123

parent d3239476
......@@ -257,7 +257,7 @@ public class AppPermissionService {
if (StringUtils.isBlank(mobilecodeRedis)) {
return JsonResultUtil.createFailedResult(ResultCode.NOTEXIST_CODE, "验证码错误");
}
if(StringUtils.isNotBlank(code)||appUserDetailBiz.getUserByCode(code)==0){
if(StringUtils.isNotBlank(code)&&appUserDetailBiz.getUserByCode(code)==0){
return JsonResultUtil.createFailedResult(ResultCode.NOTEXIST_CODE, "邀请人不存在");
}
// 是否已存在
......@@ -593,7 +593,7 @@ public class AppPermissionService {
if (register.getInteger("status") == ResultCode.EXIST_CODE) {
return JsonResultUtil.createFailedResult(ResultCode.EXIST_CODE, "用户已存在");
}
return JsonResultUtil.createFailedResult(register.getInteger("code"), "操作失败");
return JsonResultUtil.createFailedResult(register.getInteger("status"), "操作失败");
}
return register;
......
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