xiaogang 4 년 전
부모
커밋
7db714fc1f
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      app/Http/Controllers/Api/ChatController.php

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

@@ -45,7 +45,8 @@ class ChatController extends Controller
         try {
         try {
             $user = auth('api')->user();
             $user = auth('api')->user();
             $tencent_friend =new TencentImFriendService();
             $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){
         }catch (\Exception $exception){
             return $this->response->errorForbidden($exception->getMessage());
             return $this->response->errorForbidden($exception->getMessage());