Explorar o código

优化赋权报错功能

java110 %!s(int64=6) %!d(string=hai) anos
pai
achega
038e6bbcc4

+ 2 - 2
service-api/src/main/java/com/java110/api/listener/store/SaveStoreServiceListener.java

@@ -110,8 +110,8 @@ public class SaveStoreServiceListener extends AbstractServiceApiListener {
         header.add(CommonConstant.HTTP_SERVICE.toLowerCase(), ServiceCodeConstant.SERVICE_CODE_SAVE_USER_DEFAULT_PRIVILEGE);
         storeBMOImpl.freshHttpHeader(header, dataFlowContext.getRequestCurrentHeaders());
         JSONObject paramInObj = new JSONObject();
-        paramInObj.put("userId", paramObj.getJSONObject("businessStore").getString("userId"));
-        paramInObj.put("storeTypeCd", paramObj.getJSONObject("businessStore").getString("storeTypeCd"));
+        paramInObj.put("userId", paramObj.getJSONObject(StorePo.class.getSimpleName()).getString("userId"));
+        paramInObj.put("storeTypeCd", paramObj.getJSONObject(StorePo.class.getSimpleName()).getString("storeTypeCd"));
         paramInObj.put("userFlag", "admin");
         HttpEntity<String> httpEntity = new HttpEntity<String>(paramInObj.toJSONString(), header);
         doRequest(dataFlowContext, appService, httpEntity);