cs %!s(int64=2) %!d(string=hai) anos
pai
achega
054b5e8c33

+ 5 - 2
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/WeiXinCorpController.java

@@ -2705,9 +2705,10 @@ public class WeiXinCorpController {
     }
 
     private boolean saveOrderAndUpCompany(org.json.JSONObject jsonObject) throws Exception {
-        System.err.println("+++++++++++++++++++"+"订单回调开始"+"++++++++++++++++++++++");
+        System.err.println("+++++++++++++++++++订单回调开始++++++++++++++++++++++");
         String infoType = jsonObject.getString("InfoType");
         String suiteAccessToken = getSuiteAccessToken();
+        System.out.println("++++++++++++++++++++suiteAccessToken为:"+suiteAccessToken);
         HttpHeaders headers = new HttpHeaders();
         RestTemplate restTemplate = new RestTemplate();
         MediaType type = MediaType.parseMediaType("application/json; charset=UTF-8");
@@ -2725,8 +2726,10 @@ public class WeiXinCorpController {
             HttpEntity<JSONObject> detailEntity = new HttpEntity<>(map, headers);
             ResponseEntity<String> detailResponseEntity = restTemplate.postForEntity(url, detailEntity, String.class);
             JSONObject json = JSONObject.parseObject(detailResponseEntity.getBody());
+            System.out.println("+++++++++++++++++++++++++版本更新信息为:"+json);
             if (json.containsKey("auth_corp_info")){
-                String edition_id = json.getString("edition_id");
+                String edition_id = json.getJSONObject("edition_info").getJSONArray("agent")
+                        .getJSONObject(0).getString("edition_id");
                 switch (edition_id){
                     //基础版
                     case "sp17da4a6e6f2a91f8":