From eef62676aa008135b9967c990948825e07c2eb88 Mon Sep 17 00:00:00 2001 From: Cherry <522581280@qq.com> Date: Sun, 29 Oct 2023 16:54:01 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BF=AE=E5=A4=8D=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=85=B1=E4=BA=AB=E5=BA=94=E7=94=A8=E5=88=97=E8=A1=A8=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImpl.java | 2 +- .../weixin/cp/api/impl/WxCpCorpGroupServiceImplTest.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImpl.java b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImpl.java index ae4db4582..be754f229 100644 --- a/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImpl.java +++ b/weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImpl.java @@ -39,7 +39,7 @@ public class WxCpCorpGroupServiceImpl implements WxCpCorpGroupService { JsonObject tmpJson = GsonParser.parse(responseContent); return WxCpGsonBuilder.create().fromJson(tmpJson.get("corp_list"), - new TypeToken>() { + new TypeToken>() { }.getType() ); } diff --git a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImplTest.java b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImplTest.java index b972b69f3..e78ce5c00 100644 --- a/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImplTest.java +++ b/weixin-java-cp/src/test/java/me/chanjar/weixin/cp/api/impl/WxCpCorpGroupServiceImplTest.java @@ -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;