123456789101112131415161718192021222324252627 |
- <?php
- namespace App\Service;
- use App\Log;
- class CorpClientService
- {
- const CLIENT_BASE_URI = 'http://182.92.2.149:';
- /**
- * 获取账号群信息
- * */
- public static function getChatGroupData($port)
- {
- $requestUri = CorpClientService::CLIENT_BASE_URI . $port .'/?api=2103';
- $response = HttpService::httpGet($requestUri);
- Log::logInfo('本次客户端返回的群信息', ['uri' => $requestUri, 'response' => $response], 'CorpClientChatGroupData');
- $responseData = json_decode($response, true);
- $chatGroupData = $responseData['data'] ?? [];
- return $chatGroupData;
- }
- }
|