|
|
@ -124,7 +124,8 @@ public class SysLoginService
|
|
|
|
sysUser.setHospitalId(tDoctor.getHospitalId());
|
|
|
|
sysUser.setHospitalId(tDoctor.getHospitalId());
|
|
|
|
loginUser.setUserId(sysUser.getUserId());
|
|
|
|
loginUser.setUserId(sysUser.getUserId());
|
|
|
|
loginUser.setUser(sysUser);
|
|
|
|
loginUser.setUser(sysUser);
|
|
|
|
String token = userTokenService.createToken(loginUser);
|
|
|
|
loginUser.setRequestFrom("1");
|
|
|
|
|
|
|
|
String token = userTokenService.createTokenForApp(loginUser);
|
|
|
|
AsyncManager.me().execute(AsyncFactory.recordLogininfor(sysUser.getUserName(), Constants.LOGIN_SUCCESS, MessageUtils.message("user.login.success")));
|
|
|
|
AsyncManager.me().execute(AsyncFactory.recordLogininfor(sysUser.getUserName(), Constants.LOGIN_SUCCESS, MessageUtils.message("user.login.success")));
|
|
|
|
recordLoginInfo(sysUser.getUserId());
|
|
|
|
recordLoginInfo(sysUser.getUserId());
|
|
|
|
ajax.put(Constants.TOKEN, token);
|
|
|
|
ajax.put(Constants.TOKEN, token);
|
|
|
@ -195,6 +196,7 @@ public class SysLoginService
|
|
|
|
sysUser.setHospitalId(tDoctor.getHospitalId());
|
|
|
|
sysUser.setHospitalId(tDoctor.getHospitalId());
|
|
|
|
loginUser.setUserId(sysUser.getUserId());
|
|
|
|
loginUser.setUserId(sysUser.getUserId());
|
|
|
|
loginUser.setUser(sysUser);
|
|
|
|
loginUser.setUser(sysUser);
|
|
|
|
|
|
|
|
loginUser.setRequestFrom("1");
|
|
|
|
String token = userTokenService.createTokenForApp(loginUser);
|
|
|
|
String token = userTokenService.createTokenForApp(loginUser);
|
|
|
|
AsyncManager.me().execute(AsyncFactory.recordLogininfor(sysUser.getUserName(), Constants.LOGIN_SUCCESS, MessageUtils.message("user.login.success")));
|
|
|
|
AsyncManager.me().execute(AsyncFactory.recordLogininfor(sysUser.getUserName(), Constants.LOGIN_SUCCESS, MessageUtils.message("user.login.success")));
|
|
|
|
AjaxResult ajaxResult = AjaxResult.success();
|
|
|
|
AjaxResult ajaxResult = AjaxResult.success();
|
|
|
|