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无误!");
|
// }
|
}
|
}
|