xiaogang hace 4 años
padre
commit
7db714fc1f
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  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());