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