|
@ -2004,6 +2004,27 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
|
|
|
return ObjEnvelop.getSuccess("修改成功!");
|
|
|
}
|
|
|
|
|
|
return ObjEnvelop.getError("手机号未注册!");
|
|
|
}else if ("hz_yyyzh_wx".equalsIgnoreCase(wechatId)){
|
|
|
WlyyHospitalSysDictDO wlyyHospitalSysDictDO = wlyyhospitalSysdictDao.findDictById("isNeedSMS");
|
|
|
if (wlyyHospitalSysDictDO!=null&&!StringUtils.isEmpty(wlyyHospitalSysDictDO.getDictValue())){
|
|
|
if (captcha.equalsIgnoreCase(wlyyHospitalSysDictDO.getDictValue())){
|
|
|
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("验证码错误!");
|
|
|
}
|
|
|
}else {
|
|
|
if (wlyyRedisVerifyCodeService.verification(client_id, mobile, captcha)) {
|
|
|
//验证码正确
|
|
|
} else {
|
|
|
return ObjEnvelop.getError("验证码错误!");
|
|
|
}
|
|
|
}
|
|
|
String rs = registerService.updateDoctorPw(mobile,pw,wechatId);
|
|
|
if("ok".equals(rs)){
|
|
|
return ObjEnvelop.getSuccess("修改成功!");
|
|
|
}
|
|
|
|
|
|
return ObjEnvelop.getError("手机号未注册!");
|
|
|
}else {
|
|
|
return ObjEnvelop.getError("暂未开放");
|