|
@ -1459,7 +1459,7 @@ public class DoctorController extends BaseController {
|
|
|
*
|
|
|
* @param mobile 新手机号
|
|
|
* @param captcha 验证码
|
|
|
* @param type 1:变更手机号 2:绑定手机号
|
|
|
* @param type 1:变更手机号 2:绑定手机号
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/mobile_update", method = RequestMethod.POST)
|
|
@ -1480,8 +1480,9 @@ public class DoctorController extends BaseController {
|
|
|
|
|
|
if (result == -1) {
|
|
|
return error(-1, "医生信息查找失败");
|
|
|
}
|
|
|
if (result == -2) {
|
|
|
} else if (result == -2) {
|
|
|
return error(-1, "手机已注册");
|
|
|
} else if (result == -3) {
|
|
|
return error(-1, "验证码错误");
|
|
|
} else if (result == 1) {
|
|
|
return write(200, "手机号更新成功");
|
|
@ -1496,20 +1497,21 @@ public class DoctorController extends BaseController {
|
|
|
|
|
|
/**
|
|
|
* 修改密码
|
|
|
*
|
|
|
* @param newPassword1 新密码1
|
|
|
* @param newPassword2 新密码2
|
|
|
* @param oldPassword 旧密码
|
|
|
* @param doctorCode 医生code
|
|
|
* @param oldPassword 旧密码
|
|
|
* @param doctorCode 医生code
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/updatePassword", method = RequestMethod.POST )
|
|
|
@RequestMapping(value = "/updatePassword", method = RequestMethod.POST)
|
|
|
@ResponseBody
|
|
|
public String updatePassword(String newPassword1,
|
|
|
String newPassword2,
|
|
|
String oldPassword,
|
|
|
String doctorCode) {
|
|
|
String newPassword2,
|
|
|
String oldPassword,
|
|
|
String doctorCode) {
|
|
|
try {
|
|
|
doctorInfoService.updatePassword(newPassword1, newPassword2, oldPassword,doctorCode);
|
|
|
doctorInfoService.updatePassword(newPassword1, newPassword2, oldPassword, doctorCode);
|
|
|
return write(200, "更新成功");
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|