|
@@ -369,6 +369,7 @@ public class UserService extends JedisUtil {
|
369
|
369
|
result.setObj(userVo);
|
370
|
370
|
//获取到用户信息后保存登录日志
|
371
|
371
|
return getLogResultVo(user,result,"扫码登录",request);
|
|
372
|
+
|
372
|
373
|
}else{
|
373
|
374
|
result.setCode(1);
|
374
|
375
|
result.setMsg("登录失败");
|
|
@@ -433,14 +434,15 @@ public class UserService extends JedisUtil {
|
433
|
434
|
public void saveSyncLoginLog(TUserLog userLog, TUser user,UserVo userVo, HttpServletRequest request) {
|
434
|
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
|
441
|
userLog.setSystemversion(user.getSystemversion());
|
440
|
442
|
userLog.setUltypeband(user.getUltypeband());
|
441
|
443
|
userLog.setUltypemodel(user.getUltypemodel());
|
442
|
444
|
userLog.setSystembit(user.getSystembit());
|
443
|
|
- Integer usertype = user.getUsertype();
|
|
445
|
+ Integer usertype = userVo.getUsertype();
|
444
|
446
|
userLog.setUsertype(usertype);
|
445
|
447
|
String ultype = user.getUltype();
|
446
|
448
|
if (N_Utils.isNotEmpty(ultype) && ultype.equals("p_web") && usertype != null) {
|