|
@ -24,10 +24,7 @@ import com.yihu.wlyy.service.app.sign.FamilyContractService;
|
|
import com.yihu.wlyy.service.app.team.DrHealthTeamService;
|
|
import com.yihu.wlyy.service.app.team.DrHealthTeamService;
|
|
import com.yihu.wlyy.service.common.account.RoleService;
|
|
import com.yihu.wlyy.service.common.account.RoleService;
|
|
import com.yihu.wlyy.service.common.account.TokenService;
|
|
import com.yihu.wlyy.service.common.account.TokenService;
|
|
import com.yihu.wlyy.util.CommonUtil;
|
|
|
|
import com.yihu.wlyy.util.DateUtil;
|
|
|
|
import com.yihu.wlyy.util.IdcardValidator;
|
|
|
|
import com.yihu.wlyy.util.RSAUtils;
|
|
|
|
|
|
import com.yihu.wlyy.util.*;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
import com.yihu.wlyy.web.BaseController;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
@ -1987,7 +1984,8 @@ public class DoctorController extends BaseController {
|
|
public String installAuthenticationPassword(@RequestParam(value = "strNewCalledPasswd",required = true) String strNewCalledPasswd){
|
|
public String installAuthenticationPassword(@RequestParam(value = "strNewCalledPasswd",required = true) String strNewCalledPasswd){
|
|
try {
|
|
try {
|
|
Doctor doctor = doctorInfoService.findDoctorByCode(getUID());
|
|
Doctor doctor = doctorInfoService.findDoctorByCode(getUID());
|
|
String strOldCalledPasswd = StringUtils.isNotEmpty(doctor.getCheckPassword())?doctor.getCheckPassword():"11111111";
|
|
|
|
|
|
String strOldCalledPasswd = StringUtils.isNotEmpty(doctor.getCheckPassword())?doctor.getCheckPassword():Base64Utils.encryptBASE64("11111111");
|
|
|
|
strOldCalledPasswd = Base64Utils.decryptBASE64(strOldCalledPasswd);
|
|
boolean b = doctorInfoService.updateAuthenticationPassword(doctor.getIdcard(),strOldCalledPasswd,strNewCalledPasswd,getUID());
|
|
boolean b = doctorInfoService.updateAuthenticationPassword(doctor.getIdcard(),strOldCalledPasswd,strNewCalledPasswd,getUID());
|
|
if(b){
|
|
if(b){
|
|
return write(200, "设置密码成功!", "data", b);
|
|
return write(200, "设置密码成功!", "data", b);
|
|
@ -2138,5 +2136,17 @@ public class DoctorController extends BaseController {
|
|
return error(-1, "获取失败!");
|
|
return error(-1, "获取失败!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
String aa = "111111";
|
|
|
|
// String bb= MD5.GetMD5Code(aa);
|
|
|
|
// System.out.printf(bb);
|
|
|
|
// String cc= MD5.GetMD5Code(bb);
|
|
|
|
// System.out.printf(cc);
|
|
|
|
String bb = Base64Utils.encryptBASE64(aa);
|
|
|
|
System.out.println(bb);
|
|
|
|
String cc = Base64Utils.decryptBASE64(bb);
|
|
|
|
System.out.println(cc);
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
|