xiaogang 3 年之前
父节点
当前提交
417cb7faec
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/HomeService.php

+ 1 - 1
app/Services/HomeService.php

xqd
@@ -88,7 +88,7 @@ class HomeService
     public function user_detail($param){
         $user = auth('api')->user();
         if(!empty($param['user_id'])&& $param['user_id']>0){
-            $touser = User::query()->where('user_id',$param['user_id'])->first();
+            $touser = User::query()->where('id',$param['user_id'])->first();
         }
 
         if(!empty($param['tencent_im_user_id'])){