Skip to content

Commit eef6267

Browse files
Cherry522binarywang
authored andcommitted
🎨 修复获取共享应用列表返回类型错误的问题
1 parent f936325 commit eef6267

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public List<WxCpCorpGroupCorp> listAppShareInfo(Integer agentId, Integer busines
3939
JsonObject tmpJson = GsonParser.parse(responseContent);
4040

4141
return WxCpGsonBuilder.create().fromJson(tmpJson.get("corp_list"),
42-
new TypeToken<List<WxCpCorpGroupCorpListAppShareInfoResp>>() {
42+
new TypeToken<List<WxCpCorpGroupCorp>>() {
4343
}.getType()
4444
);
4545
}

weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImplTest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package me.chanjar.weixin.cp.api.impl;
22

3+
import com.google.gson.JsonObject;
34
import com.google.inject.Inject;
45
import me.chanjar.weixin.common.error.WxErrorException;
56
import me.chanjar.weixin.cp.api.ApiTestModule;
@@ -23,7 +24,7 @@ public class WxCpCorpGroupServiceImplTest {
2324
@Test
2425
public void testListAppShareInfo() throws WxErrorException {
2526
Integer agentId = wxService.getWxCpConfigStorage().getAgentId();
26-
Integer businessType = 0;
27+
Integer businessType = 1;
2728
String corpId = null;
2829
Integer limit = null;
2930
String cursor = null;

0 commit comments

Comments
 (0)