|
@ -114,6 +114,10 @@ public class LoginController extends BaseController {
|
|
@ApiParam(required = false, name = "platform", value = "医生端pc,取药系统 或者对外系统") @RequestParam(required = false) Integer platform,
|
|
@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 = "密码") @RequestParam(required = false) String password,
|
|
@ApiParam(required = false, name = "openid", value = "openid") @RequestParam(required = false) String openid) {
|
|
@ApiParam(required = false, name = "openid", value = "openid") @RequestParam(required = false) String openid) {
|
|
|
|
|
|
|
|
if(StringUtils.isNotBlank(openid)&&"undefined".equals(openid)){
|
|
|
|
return error(-1, "openid参数不合法");
|
|
|
|
}
|
|
String errorMessage;
|
|
String errorMessage;
|
|
LoginLog loginLog = new LoginLog();
|
|
LoginLog loginLog = new LoginLog();
|
|
loginLog.setCreateTime(new Date());
|
|
loginLog.setCreateTime(new Date());
|
|
@ -253,7 +257,7 @@ public class LoginController extends BaseController {
|
|
}
|
|
}
|
|
loginLogService.saveLog(loginLog);
|
|
loginLogService.saveLog(loginLog);
|
|
|
|
|
|
if(StringUtils.isNotBlank(openid)){
|
|
|
|
|
|
if(!"undefined".equals(openid)&&StringUtils.isNotBlank(openid)){
|
|
doctor.setOpenid(openid);
|
|
doctor.setOpenid(openid);
|
|
doctorService.save(doctor);
|
|
doctorService.save(doctor);
|
|
}
|
|
}
|