WIN-2308041133\Administrator 8 months ago
parent
commit
9f3f679f25
1 changed files with 3 additions and 3 deletions
  1. 3 3
      application/api/controller/Platform.php

+ 3 - 3
application/api/controller/Platform.php

@@ -42,15 +42,15 @@ class Platform extends Api
         $map = []; // 初始化$map数组,避免未定义时的错误
         if(input('uid', 0) > 0){
             // 明确指定uid所属的表(假设主表为video_share)
-            $map['uid'] = input('uid');
+            $map['video_share.uid'] = input('uid');
         }
         $config = $this->config();
         $list = model('VideoShare')
-            ->with('videolist,users')
+            ->with('videolist,user')
             ->where($map)
             ->limit(10)
             ->select();
-        var_dump(model('VideoShare')->getLastSql());die();
+//        var_dump(model('VideoShare')->getLastSql());die();
         $data = ['config' => $config, 'doctor' => $list];
         $this->success('请求成功', $data);
     }