소스 검색

完善视频详情

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);
     }