| xqd
@@ -41,12 +41,17 @@ class ChatController extends Controller
|
|
|
return response()->json($res);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 获取好友关系
|
|
|
+ * @param Request $request
|
|
|
+ * @return \Illuminate\Http\JsonResponse|void
|
|
|
+ */
|
|
|
public function get_friend(Request $request){
|
|
|
try {
|
|
|
$user = auth('api')->user();
|
|
|
$tencent_friend =new TencentImFriendService();
|
|
|
|
|
|
- $res = $tencent_friend->friendGet($user->tencent_im_user_id,($request->page-1)*10);
|
|
|
+ $res = $tencent_friend->friendGet($user->tencent_im_user_id,($request->page-1)*20);
|
|
|
|
|
|
}catch (\Exception $exception){
|
|
|
return $this->response->errorForbidden($exception->getMessage());
|