yujian
2019-09-25 011d53f9f3d08af8cd622585ce40eb880f313aaf
fanli/src/main/java/com/yeshi/fanli/aspect/SignValidateAspect.java
@@ -33,7 +33,7 @@
@Aspect
@Order(2)
public class SignValidateAspect {
   public static final String EDP = "execution(* com.yeshi.fanli.controller.client.v1.*.*(..))";
   public static final String EDP = "execution(* com.yeshi.fanli.controller.client.*.*.*(..))";
   public static String KEY = "";
@@ -41,7 +41,7 @@
      KEY = Constant.systemCommonConfig.getSignKey();
   }
   @Around(EDP)
//   @Around(EDP)
   public Object testAround(ProceedingJoinPoint joinPoint) throws IOException {
      Object[] args = joinPoint.getArgs();
      PrintWriter out = null;
@@ -114,7 +114,7 @@
            // 记录大于2s的请求
            if (responseTime >= 2000) {
               ThreadUtil.run(new Runnable() {
                  @Override
                  public void run() {
                     LogHelper.requestTime(url, params, responseTime);
@@ -124,11 +124,7 @@
            }
         } catch (Throwable e) {
            try {
               LogHelper.errorDetailInfo(e, getHttpServletParams(request), request.getRequestURI().toString());
            } catch (Exception e1) {
               e1.printStackTrace();
            }
            LogHelper.errorDetailInfo(e, getHttpServletParams(request), request.getRequestURI().toString());
            out.print(JsonUtil.loadFalseResult(90009, "服务器内部错误"));
         }
         return obj;
@@ -197,9 +193,9 @@
      while (its.hasNext()) {
         String key = its.next();
         if (key.equalsIgnoreCase("callback")) {
            fromWEB = true;
         }
//         if (key.equalsIgnoreCase("callback")) {
//            fromWEB = true;
//         }
         if (key.equalsIgnoreCase("sign") || key.equalsIgnoreCase("callback") || key.equalsIgnoreCase("_")) {
            continue;