Skip to content

Commit ffa3544

Browse files
author
ecoolper
committed
1、提取了公共代码,添加AbstractWxMPService、AbstractWxCPService类
2、实现了okhttp请求方式 3、RequestExecute接口添加executeApache、executeJodd、executeOkhttp方法
1 parent 49f9787 commit ffa3544

22 files changed

+1693
-2369
lines changed

pom.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,14 +107,15 @@
107107
<commons-codec.version>1.10</commons-codec.version>
108108
<jetty.version>9.3.0.RC0</jetty.version>
109109
<jedis.version>2.9.0</jedis.version>
110+
<!-- 由于较新的3.8版本需要jdk8,故而此处采用较低版本 -->
111+
<jodd-http.version>3.7</jodd-http.version>
110112
</properties>
111113

112114
<dependencies>
113115
<dependency>
114116
<groupId>org.jodd</groupId>
115117
<artifactId>jodd-http</artifactId>
116-
<version>3.7</version>
117-
<!-- 由于较新的3.8版本需要jdk8,故而此处采用较低版本 -->
118+
<version>${jodd-http.version}</version>
118119
</dependency>
119120
<dependency>
120121
<groupId>com.squareup.okhttp3</groupId>

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -551,4 +551,9 @@ WxMediaUploadResult mediaUpload(String mediaType, String fileType, InputStream i
551551
* 获取异步任务结果
552552
*/
553553
String getTaskResult(String joinId) throws WxErrorException;
554+
555+
/**
556+
* 初始化http请求对象
557+
*/
558+
void initHttp();
554559
}

0 commit comments

Comments
 (0)