自动化立体仓库 - WMS系统
pang.jiabao
2025-09-22 f27121a780afd9bc5d9095aadc7f846af6e8b6db
src/main/java/com/zy/common/config/AdminInterceptor.java
@@ -1,6 +1,5 @@
package com.zy.common.config;
import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.annotations.AppAuth;
import com.core.annotations.ManagerAuth;
@@ -54,8 +53,8 @@
            String deToken = Cools.deTokn(token, superPwd);
            if (deToken!=null){
                long timestamp = Long.parseLong(deToken.substring(0, 13));
                // 1天后过期
                if (System.currentTimeMillis() - timestamp > 86400000){
                // 30分钟后过期
                if (System.currentTimeMillis() - timestamp > 30 * 60 * 1000){
                    Http.response(response, BaseRes.DENIED);
                    return false;
                }