|
@@ -1712,7 +1712,7 @@ public class LibVipServiceServiceImpl extends BaseServiceImpl<LibVipService, Str
|
|
|
String accessKey="Zhidian@34889_";
|
|
|
|
|
|
String accessToken=createOpenToken(appid, accessKey);
|
|
|
- String url=host+"/open/api/parents/share/dealServiceCRM?appid="+appid+"&accessToken="+accessToken;
|
|
|
+ String url=host+"/api/parents/share/dealServiceCRM?appid="+appid+"&accessToken="+accessToken;
|
|
|
|
|
|
JSONObject json=new JSONObject();
|
|
|
json.put("type", type);
|
|
@@ -1737,25 +1737,27 @@ public class LibVipServiceServiceImpl extends BaseServiceImpl<LibVipService, Str
|
|
|
}
|
|
|
|
|
|
|
|
|
- public static void main(String[] args) {
|
|
|
- String appid="zhidian";
|
|
|
- String accessKey="Zhidian@34889_";
|
|
|
- String accessToken=createOpenToken(appid, accessKey);
|
|
|
- String url="https://master.sharingschool.com/open/api/parents/share/dealServiceCRM?appid="+appid+"&accessToken="+accessToken;
|
|
|
-
|
|
|
- JSONObject json=new JSONObject();
|
|
|
- json.put("type", 1);
|
|
|
- json.put("libId", "111");
|
|
|
- json.put("num", 1);
|
|
|
- json.put("endTime", "2020-10-10");
|
|
|
- try {
|
|
|
- String text=HttpRemote.POSTMethod(url, json.toJSONString());
|
|
|
- System.out.println("调用第三方接口【dealServiceCRM】,返回结果:"+text);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+// public static void main(String[] args) {
|
|
|
+// String appid="zhidian";
|
|
|
+// String accessKey="Zhidian@34889_";
|
|
|
+// String accessToken=createOpenToken(appid, accessKey);
|
|
|
+// String url="https://master.sharingschool.com/open/api/parents/share/dealServiceCRM?appid="+appid+"&accessToken="+accessToken;
|
|
|
+//
|
|
|
+// JSONObject json=new JSONObject();
|
|
|
+// json.put("type", 1);
|
|
|
+// json.put("libId", "111");
|
|
|
+// json.put("num", 1);
|
|
|
+// json.put("endTime", "2020-10-10");
|
|
|
+// try {
|
|
|
+// System.out.println("调用第三方接口【dealServiceCRM】,请求URL:"+url);
|
|
|
+// System.out.println("调用第三方接口【dealServiceCRM】,请求参数:"+json);
|
|
|
+// String text=HttpRemote.POSTMethod(url, json.toJSONString());
|
|
|
+// System.out.println("调用第三方接口【dealServiceCRM】,返回结果:"+text);
|
|
|
+// } catch (Exception e) {
|
|
|
+// e.printStackTrace();
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
|
|
|
|
|
|
|