修改样本查询bug

This commit is contained in:
2022-11-30 22:43:40 +08:00
parent 2aa9bdab9f
commit f4e3cdfb99
@@ -213,7 +213,7 @@ public class AuthenticationInterceptor implements Interceptor {
if (null == apiUser) {
return ret;
}
if(apiUser.getDeadTime() != null && new Date().after(apiUser.getDeadTime())){
if(apiUser.getDeadTime() != null && DateUtil.truncateDay(new Date()).after(apiUser.getDeadTime())){
return new HttpCode(OpenHttpCodeEnum.USER_EXPIRED);
}
if(!isOldUser(apiUser) && isExpired(token)){