|
12 | 12 | import me.chanjar.weixin.cp.api.WxCpExternalContactService;
|
13 | 13 | import me.chanjar.weixin.cp.api.WxCpService;
|
14 | 14 | import me.chanjar.weixin.cp.bean.WxCpBaseResp;
|
15 |
| -import me.chanjar.weixin.cp.bean.external.*; |
| 15 | +import me.chanjar.weixin.cp.bean.external.WxCpContactWayInfo; |
| 16 | +import me.chanjar.weixin.cp.bean.external.WxCpContactWayResult; |
| 17 | +import me.chanjar.weixin.cp.bean.external.WxCpMsgTemplate; |
| 18 | +import me.chanjar.weixin.cp.bean.external.WxCpMsgTemplateAddResult; |
| 19 | +import me.chanjar.weixin.cp.bean.external.WxCpUpdateRemarkRequest; |
| 20 | +import me.chanjar.weixin.cp.bean.external.WxCpUserExternalContactList; |
| 21 | +import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatInfo; |
| 22 | +import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatList; |
| 23 | +import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatStatistic; |
| 24 | +import me.chanjar.weixin.cp.bean.external.WxCpUserExternalGroupChatTransferResp; |
| 25 | +import me.chanjar.weixin.cp.bean.external.WxCpUserExternalTagGroupInfo; |
| 26 | +import me.chanjar.weixin.cp.bean.external.WxCpUserExternalTagGroupList; |
| 27 | +import me.chanjar.weixin.cp.bean.external.WxCpUserExternalUnassignList; |
| 28 | +import me.chanjar.weixin.cp.bean.external.WxCpUserExternalUserBehaviorStatistic; |
| 29 | +import me.chanjar.weixin.cp.bean.external.WxCpUserTransferCustomerReq; |
| 30 | +import me.chanjar.weixin.cp.bean.external.WxCpUserTransferCustomerResp; |
| 31 | +import me.chanjar.weixin.cp.bean.external.WxCpUserTransferResultResp; |
| 32 | +import me.chanjar.weixin.cp.bean.external.WxCpUserWithExternalPermission; |
| 33 | +import me.chanjar.weixin.cp.bean.external.WxCpWelcomeMsg; |
16 | 34 | import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactBatchInfo;
|
17 | 35 | import me.chanjar.weixin.cp.bean.external.contact.WxCpExternalContactInfo;
|
18 | 36 | import org.apache.commons.lang3.ArrayUtils;
|
@@ -267,9 +285,10 @@ public WxCpUserExternalGroupChatList listGroupChat(Integer limit, String cursor,
|
267 | 285 | }
|
268 | 286 |
|
269 | 287 | @Override
|
270 |
| - public WxCpUserExternalGroupChatInfo getGroupChat(String chatId) throws WxErrorException { |
| 288 | + public WxCpUserExternalGroupChatInfo getGroupChat(String chatId, Integer needName) throws WxErrorException { |
271 | 289 | JsonObject json = new JsonObject();
|
272 | 290 | json.addProperty("chat_id", chatId);
|
| 291 | + json.addProperty("need_name", needName); |
273 | 292 | final String url = this.mainService.getWxCpConfigStorage().getApiUrl(GROUP_CHAT_INFO);
|
274 | 293 | final String result = this.mainService.post(url, json.toString());
|
275 | 294 | return WxCpUserExternalGroupChatInfo.fromJson(result);
|
|
0 commit comments