Browse Source

打招呼bug修复

xiaogang 3 years ago
parent
commit
2ff5dd808b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      app/Services/TencentImFriendService.php

+ 4 - 0
app/Services/TencentImFriendService.php

@@ -119,6 +119,10 @@ class TencentImFriendService
     public function friendAddItem(string $fromAccount, string $toAccount, array $options = [])
     public function friendAddItem(string $fromAccount, string $toAccount, array $options = [])
     {
     {
         //TODO 请求添加好友前先拉取好友状态
         //TODO 请求添加好友前先拉取好友状态
+        $res = $this->friendCheck($fromAccount,$toAccount);
+        dd($res);
+
+
 
 
         $this->restApiName = self::TENCENT_REST_APIS['friendAddItem'];
         $this->restApiName = self::TENCENT_REST_APIS['friendAddItem'];
         $baseApiHost = $this->getTencentImRestApiBaseHost();
         $baseApiHost = $this->getTencentImRestApiBaseHost();