|
|
@@ -147,7 +147,7 @@ public class WxUserGrantController extends BaseController { |
|
|
|
return new ResultData(ErrorCode.USER_IS_EMPTY); |
|
|
|
} |
|
|
|
|
|
|
|
String encryptPassword = new PasswordHelper().encryptPassword(phone, password); |
|
|
|
String encryptPassword = new PasswordHelper().encryptPassword(password); |
|
|
|
|
|
|
|
if(!encryptPassword.equals(basicInfo.getPassword())){ |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_ERROR.getCode(), "手机号或密码错误"); |
|
|
@@ -328,7 +328,7 @@ public class WxUserGrantController extends BaseController { |
|
|
|
return new ResultData(Result.ERROR, e.getMessage()); |
|
|
|
} |
|
|
|
if(isValidCode) { |
|
|
|
String encryptPassword = new PasswordHelper().encryptPassword(phone, pwd); |
|
|
|
String encryptPassword = new PasswordHelper().encryptPassword(pwd); |
|
|
|
WxCUserBasicInfo basicInfoUpd = new WxCUserBasicInfo(); |
|
|
|
basicInfoUpd.setId(basicInfo.getId()); |
|
|
|
basicInfoUpd.setPassword(encryptPassword); |
|
|
|