浏览代码

完善视频详情

15954078560 2 年之前
父节点
当前提交
d31a7403c9
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      application/api/controller/Index.php

+ 1 - 0
application/api/controller/Index.php

@@ -1245,6 +1245,7 @@ class Index extends Api
         }
 
         $info['image'] = one_domain_image($info['image']);
+        $info['is_collection'] = Db::name('video_collection')->where(['user_id' => $this->auth->id, 'video_id' => $id])->count('id');
 
         $this->success('详情', $info);
     }