Client.php 953 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /****************************************************************
  3. * Author: libaojia
  4. * Date: 2017/7/25 下午10:32
  5. * Email: livsyitian@163.com
  6. * QQ: 995265288
  7. * User: 芸众商城 www.yunzshop.com
  8. ****************************************************************/
  9. namespace app\common\services\easyWechat;
  10. use EasyWeChat\Work\ExternalContact\Client as BaseClient;
  11. class Client extends BaseClient
  12. {
  13. public function getCorpTags(array $tagIds = [], array $groupIds = [])
  14. {
  15. $params = [
  16. 'tag_id' => $tagIds,
  17. 'group_id' => $groupIds
  18. ];
  19. return $this->httpPostJson('cgi-bin/externalcontact/get_corp_tag_list', $params);
  20. }
  21. public function getGroupChat(string $chatId)
  22. {
  23. $params = [
  24. 'chat_id' => $chatId,
  25. 'need_name' => 1,
  26. ];
  27. return $this->httpPostJson('cgi-bin/externalcontact/groupchat/get', $params);
  28. }
  29. }