|
@@ -11,6 +11,7 @@ import com.zanxiang.common.text.UUID;
|
|
|
import com.zanxiang.common.utils.DateUtils;
|
|
|
import com.zanxiang.common.utils.MD5Util;
|
|
|
import com.zanxiang.common.utils.bean.BeanUtils;
|
|
|
+import com.zanxiang.module.util.JsonUtil;
|
|
|
import com.zanxiang.mybatis.entity.GameExt;
|
|
|
import com.zanxiang.mybatis.entity.User;
|
|
|
import com.zanxiang.mybatis.entity.UserToken;
|
|
@@ -108,6 +109,7 @@ public class UserTokenServiceImpl extends ServiceImpl<UserTokenMapper, UserToken
|
|
|
*/
|
|
|
@Override
|
|
|
public Boolean userTokenExpireTimeCheck(UserData userData) {
|
|
|
+ log.error("-----------------> 时效验证, userData : {}", JsonUtil.toString(userData));
|
|
|
//验证ip是否封禁
|
|
|
if (ipBanService.checkIpBan(userData.getIp())) {
|
|
|
return Boolean.FALSE;
|
|
@@ -126,7 +128,9 @@ public class UserTokenServiceImpl extends ServiceImpl<UserTokenMapper, UserToken
|
|
|
//判断token是否过期
|
|
|
long endTime = DateUtils.localDateTimeToSecond(LocalDateTime.now().plusDays(1));
|
|
|
//判断有效期时间是否大于1天
|
|
|
- return expireTime > endTime;
|
|
|
+ boolean b = expireTime > endTime;
|
|
|
+ log.error("-----------------> expireTime : {}, endTime : {}, b : {}", expireTime, endTime, b);
|
|
|
+ return b;
|
|
|
}
|
|
|
|
|
|
/**
|