修改样本查询bug
This commit is contained in:
+1
-1
@@ -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)){
|
||||
|
||||
Reference in New Issue
Block a user