|
|
@@ -12,6 +12,8 @@ import com.uas.sso.service.TokenService;
|
|
|
import com.uas.sso.util.MessageUtils;
|
|
|
import com.uas.sso.util.StringUtil;
|
|
|
import com.uas.sso.util.encry.HmacUtils;
|
|
|
+import org.slf4j.Logger;
|
|
|
+import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.HttpHeaders;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
@@ -59,6 +61,8 @@ public class BaseController {
|
|
|
|
|
|
private final static long EXPIRE_IN = 10 * 1000;
|
|
|
|
|
|
+ private static final Logger LOGGER = LoggerFactory.getLogger(BaseController.class);
|
|
|
+
|
|
|
protected static boolean isSuccess(ModelMap map) {
|
|
|
return Boolean.TRUE.equals(map.get("success"));
|
|
|
}
|
|
|
@@ -295,6 +299,7 @@ public class BaseController {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
+ LOGGER.warn("企业密钥错误,秘钥:{},参数:{}", accessSecret, request.getRequestURI() + "?" + request.getQueryString());
|
|
|
throw new VisibleError("密钥错误");
|
|
|
}
|
|
|
|