fix: 修复 锁定账号 数据类型转化失败问题

pull/14/head
Carina 3 years ago
parent 07fa65ed69
commit 1cefefd2b1

@ -337,8 +337,8 @@ public class UserTokenUtil {
// 判断账号是否临时锁定 // 判断账号是否临时锁定
Long loseTimeMillis = (Long) redisPlugin.get( Long loseTimeMillis = Convert.toLong(redisPlugin.get(
CacheUtil.formatKey(RedisConstants.PREFIX_ACCOUNT_SLIP_LOCK + username)); CacheUtil.formatKey(RedisConstants.PREFIX_ACCOUNT_SLIP_LOCK + username)));
if(loseTimeMillis != null){ if(loseTimeMillis != null){
Date currDate = DateUtil.date(); Date currDate = DateUtil.date();
DateTime loseDate = DateUtil.date(loseTimeMillis); DateTime loseDate = DateUtil.date(loseTimeMillis);

Loading…
Cancel
Save