自动化立体仓库 - WMS系统
zyx
2023-07-20 cb98548ecc0fa2d4388eb67528b98be39670bc0c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package com.zy.asrs.utils;
 
import com.core.common.Cools;
import com.core.exception.CoolException;
import lombok.extern.slf4j.Slf4j;
 
import javax.servlet.http.HttpServletRequest;
 
@Slf4j
public class AppAuthUtil {
    private static final boolean auth = true;
 
    public static void auth(String appkey, Object obj, HttpServletRequest request) {
        request.setAttribute("cache", obj);
 
        if (Cools.isEmpty(appkey)) {
            throw new CoolException("认证失败,请确认appkey无误!");
        }
//        if (!APP_KEY_LIST.contains(appkey)) {
//            throw new CoolException("认证失败,请确认appkey无误!");
//        }
    }
}