🎨 修复获取共享应用列表返回类型错误的问题

This commit is contained in:
Cherry 2023-10-29 16:54:01 +08:00 committed by Binary Wang
parent f936325b0c
commit eef62676aa
2 changed files with 3 additions and 2 deletions

View File

@ -39,7 +39,7 @@ public class WxCpCorpGroupServiceImpl implements WxCpCorpGroupService {
JsonObject tmpJson = GsonParser.parse(responseContent);
return WxCpGsonBuilder.create().fromJson(tmpJson.get("corp_list"),
new TypeToken<List<WxCpCorpGroupCorpListAppShareInfoResp>>() {
new TypeToken<List<WxCpCorpGroupCorp>>() {
}.getType()
);
}

View File

@ -1,5 +1,6 @@
package me.chanjar.weixin.cp.api.impl;
import com.google.gson.JsonObject;
import com.google.inject.Inject;
import me.chanjar.weixin.common.error.WxErrorException;
import me.chanjar.weixin.cp.api.ApiTestModule;
@ -23,7 +24,7 @@ public class WxCpCorpGroupServiceImplTest {
@Test
public void testListAppShareInfo() throws WxErrorException {
Integer agentId = wxService.getWxCpConfigStorage().getAgentId();
Integer businessType = 0;
Integer businessType = 1;
String corpId = null;
Integer limit = null;
String cursor = null;