mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-05-06 13:47:47 +08:00
🎨 修复获取共享应用列表返回类型错误的问题
This commit is contained in:
parent
f936325b0c
commit
eef62676aa
@ -39,7 +39,7 @@ public class WxCpCorpGroupServiceImpl implements WxCpCorpGroupService {
|
|||||||
JsonObject tmpJson = GsonParser.parse(responseContent);
|
JsonObject tmpJson = GsonParser.parse(responseContent);
|
||||||
|
|
||||||
return WxCpGsonBuilder.create().fromJson(tmpJson.get("corp_list"),
|
return WxCpGsonBuilder.create().fromJson(tmpJson.get("corp_list"),
|
||||||
new TypeToken<List<WxCpCorpGroupCorpListAppShareInfoResp>>() {
|
new TypeToken<List<WxCpCorpGroupCorp>>() {
|
||||||
}.getType()
|
}.getType()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
package me.chanjar.weixin.cp.api.impl;
|
package me.chanjar.weixin.cp.api.impl;
|
||||||
|
|
||||||
|
import com.google.gson.JsonObject;
|
||||||
import com.google.inject.Inject;
|
import com.google.inject.Inject;
|
||||||
import me.chanjar.weixin.common.error.WxErrorException;
|
import me.chanjar.weixin.common.error.WxErrorException;
|
||||||
import me.chanjar.weixin.cp.api.ApiTestModule;
|
import me.chanjar.weixin.cp.api.ApiTestModule;
|
||||||
@ -23,7 +24,7 @@ public class WxCpCorpGroupServiceImplTest {
|
|||||||
@Test
|
@Test
|
||||||
public void testListAppShareInfo() throws WxErrorException {
|
public void testListAppShareInfo() throws WxErrorException {
|
||||||
Integer agentId = wxService.getWxCpConfigStorage().getAgentId();
|
Integer agentId = wxService.getWxCpConfigStorage().getAgentId();
|
||||||
Integer businessType = 0;
|
Integer businessType = 1;
|
||||||
String corpId = null;
|
String corpId = null;
|
||||||
Integer limit = null;
|
Integer limit = null;
|
||||||
String cursor = null;
|
String cursor = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user