Browse Source

完善登录日志

tags/正式3.10.0
王宁 1 year ago
parent
commit
cda93915d8

+ 6
- 4
suser/src/main/java/com/xhkjedu/suser/service/system/UserService.java View File

369
             result.setObj(userVo);
369
             result.setObj(userVo);
370
             //获取到用户信息后保存登录日志
370
             //获取到用户信息后保存登录日志
371
             return getLogResultVo(user,result,"扫码登录",request);
371
             return getLogResultVo(user,result,"扫码登录",request);
372
+
372
         }else{
373
         }else{
373
             result.setCode(1);
374
             result.setCode(1);
374
             result.setMsg("登录失败");
375
             result.setMsg("登录失败");
433
     public void saveSyncLoginLog(TUserLog userLog, TUser user,UserVo userVo, HttpServletRequest request) {
434
     public void saveSyncLoginLog(TUserLog userLog, TUser user,UserVo userVo, HttpServletRequest request) {
434
         try {
435
         try {
435
 
436
 
436
-            userLog.setUserid(user.getUserid());
437
-            userLog.setUsername(user.getUsername());
438
-            userLog.setSchoolid(user.getSchoolid());
437
+            userLog.setUserid(userVo.getUserid());
438
+            userLog.setUsername(userVo.getUsername());
439
+            userLog.setSchoolid(userVo.getSchoolid());
440
+            userLog.setLoginname(userVo.getLoginname());
439
             userLog.setSystemversion(user.getSystemversion());
441
             userLog.setSystemversion(user.getSystemversion());
440
             userLog.setUltypeband(user.getUltypeband());
442
             userLog.setUltypeband(user.getUltypeband());
441
             userLog.setUltypemodel(user.getUltypemodel());
443
             userLog.setUltypemodel(user.getUltypemodel());
442
             userLog.setSystembit(user.getSystembit());
444
             userLog.setSystembit(user.getSystembit());
443
-            Integer usertype = user.getUsertype();
445
+            Integer usertype = userVo.getUsertype();
444
             userLog.setUsertype(usertype);
446
             userLog.setUsertype(usertype);
445
             String ultype = user.getUltype();
447
             String ultype = user.getUltype();
446
             if (N_Utils.isNotEmpty(ultype) && ultype.equals("p_web") && usertype != null) {
448
             if (N_Utils.isNotEmpty(ultype) && ultype.equals("p_web") && usertype != null) {

Loading…
Cancel
Save