xiaogang 4 năm trước cách đây
mục cha
commit
7db714fc1f
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  1. 2 1
      app/Http/Controllers/Api/ChatController.php

+ 2 - 1
app/Http/Controllers/Api/ChatController.php

xqd
@@ -45,7 +45,8 @@ class ChatController extends Controller
         try {
             $user = auth('api')->user();
             $tencent_friend =new TencentImFriendService();
-            $res = $tencent_friend->friendGet($user->tencent_im_user_id,$request->page);
+
+            $res = $tencent_friend->friendGet($user->tencent_im_user_id,($request->page-1)*10);
 
         }catch (\Exception $exception){
             return $this->response->errorForbidden($exception->getMessage());