|
@@ -89,8 +89,7 @@ public class MerchantServiceImpl implements MerchantService {
|
|
|
|
|
|
String body = JSONObject.toJSONString(wm);
|
|
String body = JSONObject.toJSONString(wm);
|
|
// 获取签名
|
|
// 获取签名
|
|
- String auth = ComtikaWeChatUtil.findAuthorization("POST",
|
|
|
|
- "/v3/applyment4sub/applyment/", body);
|
|
|
|
|
|
+ String auth = ComtikaWeChatUtil.findAuthorization("POST","/v3/applyment4sub/applyment/", body);
|
|
|
|
|
|
map.put("Charsert", "UTF-8");
|
|
map.put("Charsert", "UTF-8");
|
|
map.put("connection", "Keep-Alive");
|
|
map.put("connection", "Keep-Alive");
|
|
@@ -98,11 +97,11 @@ public class MerchantServiceImpl implements MerchantService {
|
|
map.put("Content-Type", "application/json");
|
|
map.put("Content-Type", "application/json");
|
|
map.put("Accept", "application/json");
|
|
map.put("Accept", "application/json");
|
|
map.put("Authorization", auth);
|
|
map.put("Authorization", auth);
|
|
- System.out.println(body);
|
|
|
|
|
|
+System.out.println(body);
|
|
String data = "";
|
|
String data = "";
|
|
try {
|
|
try {
|
|
- //data = "{\"applyment_id\":2000002138689059}";
|
|
|
|
- data = HTTPUtils.post("https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/",map,body);
|
|
|
|
|
|
+ data = "{\"applyment_id\":2000002138689059111}";
|
|
|
|
+ //data = HTTPUtils.post("https://api.mch.weixin.qq.com/v3/applyment4sub/applyment/",map,body);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
data = e.getMessage();
|
|
data = e.getMessage();
|