Commit 8302d289 authored by 曹盼盼's avatar 曹盼盼

修改登录接口

parent 5710fb1c
...@@ -114,10 +114,10 @@ public class SafetyServiceImpl implements ISafetyService { ...@@ -114,10 +114,10 @@ public class SafetyServiceImpl implements ISafetyService {
// 1.判断是否需要进行短信验证码校验 // 1.判断是否需要进行短信验证码校验
boolean isPassCheck = !param.getIsNeedVerify() boolean isPassCheck = !param.getIsNeedVerify()
|| ("dev".equals(loginEnvironment) && "666666".equals(param.getVerifyCode())); || ("dev".equals(loginEnvironment) && "666666".equals(param.getVerifyCode()));
/* isPassCheck = this.smsVerifyCodeCheck(param.getIsNeedVerify(), param.getVerifyCode(), phoneNo); isPassCheck = this.smsVerifyCodeCheck(param.getIsNeedVerify(), param.getVerifyCode(), phoneNo);
if (!isPassCheck) { if (!isPassCheck) {
throw new CommonException(600001, "短信验证不通过"); throw new CommonException(600001, "短信验证不通过");
}*/ }
// 2.校验是否已经注册过 // 2.校验是否已经注册过
List<RegUnitInfo> userList = regUnitInfoMapper.userData(phoneNo); List<RegUnitInfo> userList = regUnitInfoMapper.userData(phoneNo);
...@@ -136,7 +136,8 @@ public class SafetyServiceImpl implements ISafetyService { ...@@ -136,7 +136,8 @@ public class SafetyServiceImpl implements ISafetyService {
RequestContext.setProduct(product); RequestContext.setProduct(product);
RequestContext.setAppKey(appKey); RequestContext.setAppKey(appKey);
try { try {
mobileVerifyCodeResult = privilegeFeginService.mobileVerifyCode(model); // mobileVerifyCodeResult = privilegeFeginService.mobileVerifyCode(model);
mobileVerifyCodeResult=Privilege.authClient.mobileVerifyCode(model);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
...@@ -160,7 +161,7 @@ public class SafetyServiceImpl implements ISafetyService { ...@@ -160,7 +161,7 @@ public class SafetyServiceImpl implements ISafetyService {
// 设置userInfo信息 // 设置userInfo信息
RegUnitInfo user = userList.get(0); RegUnitInfo user = userList.get(0);
result.put("userInfo", userInfo); result.put("userInfo", user);
return result; return result;
} }
......
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