java110 лет назад: 5
Родитель
Сommit
e50921ab9b

+ 1 - 1
Api/src/main/java/com/java110/api/smo/impl/ApiServiceSMOImpl.java

@@ -244,7 +244,7 @@ public class ApiServiceSMOImpl extends LoggerEngine implements IApiServiceSMO {
         if (!StringUtil.isNullOrNone(dataFlow.getAppRoutes().get(0).getSecurityCode())) {
             String sign = AuthenticationFactory.apiDataFlowMd5(dataFlow);
             if (!sign.equals(dataFlow.getReqSign().toLowerCase())) {
-                throw new NoAuthorityException(ResponseConstant.RESULT_CODE_NO_AUTHORITY_ERROR, "签名失败");
+                throw new NoAuthorityException(ResponseConstant.RESULT_CODE_NO_AUTHORITY_ERROR, "签名失败"+sign);
             }
         }
 

+ 12 - 0
FrontService/src/main/java/com/java110/front/smo/common/impl/CommonPostSMOImpl.java

@@ -35,6 +35,18 @@ public class CommonPostSMOImpl extends AbstractComponentSMO implements ICommonPo
 
     }
 
+    /**
+     * {
+     *     "a":123,
+     *     userId:xxx
+     *     storeId:xxx
+     *
+     * }
+     * @param pd      页面数据封装
+     * @param paramIn 前台数据对象
+     * @return
+     * @throws Exception
+     */
     @Override
     protected ResponseEntity<String> doBusinessProcess(IPageData pd, JSONObject paramIn) throws Exception {
         ResponseEntity<String> responseEntity = null;

+ 2 - 1
java110-core/src/main/java/com/java110/core/factory/AuthenticationFactory.java

@@ -90,7 +90,8 @@ public class AuthenticationFactory {
             throw new NoAuthorityException(ResponseConstant.RESULT_CODE_NO_AUTHORITY_ERROR, "MD5签名过程中出现错误");
         }
         String reqInfo = dataFlow.getTransactionId() + dataFlow.getRequestTime() + dataFlow.getAppId();
-        reqInfo += "GET,DELETE".equals(dataFlow.getRequestHeaders().get(CommonConstant.HTTP_METHOD)) ?
+        //,DELETE
+        reqInfo += "GET".equals(dataFlow.getRequestHeaders().get(CommonConstant.HTTP_METHOD)) ?
                 dataFlow.getRequestHeaders().get("REQUEST_URL") : dataFlow.getReqData();
         reqInfo += dataFlow.getAppRoutes().get(0).getSecurityCode();
         return md5(reqInfo);