|
@ -114,7 +114,7 @@ public class LoginController extends BaseController {
|
|
|
@ApiParam(required = false, name = "captcha", value = "短信验证码") @RequestParam(required = false) String captcha,
|
|
|
@ApiParam(required = false, name = "platform", value = "医生端pc,取药系统 或者对外系统") @RequestParam(required = false) Integer platform,
|
|
|
@ApiParam(required = false, name = "password", value = "密码") @RequestParam(required = false) String password,
|
|
|
@ApiParam(required = false, name = "password", value = "openid") @RequestParam(required = false) String openid) {
|
|
|
@ApiParam(required = false, name = "openid", value = "openid") @RequestParam(required = false) String openid) {
|
|
|
String errorMessage;
|
|
|
LoginLog loginLog = new LoginLog();
|
|
|
loginLog.setCreateTime(new Date());
|
|
@ -134,7 +134,9 @@ public class LoginController extends BaseController {
|
|
|
}
|
|
|
//身份证登录
|
|
|
if (StringUtils.isNoneEmpty(mobile) && StringUtils.isNoneEmpty(password)) {
|
|
|
password = RSAUtils.getInstance(doctorService).decryptString(password);
|
|
|
|
|
|
rsaUtils.setBaseService(doctorService);
|
|
|
password = rsaUtils.decryptString(password);
|
|
|
password = StringUtils.reverse(password);
|
|
|
Doctor doctor = doctorService.findDoctorByMobile(mobile);
|
|
|
loginLog.setLoginType("2");
|