|
@@ -387,6 +387,7 @@ class Video extends Base
|
|
|
* @return name:is_top type:int default:-- desc:是否置顶(0否,1是)
|
|
|
* @return name:read_num type:int default:-- desc:播放量
|
|
|
* @return name:follow_switch type:int default:-- desc:追番开关状态【0关闭1开启】
|
|
|
+ * @return name:switch_open type:int default:-- desc:通知开关【0关闭1开启】
|
|
|
* @return name:total_sequel type:int default:-- desc:共多少期【期数】(默认1)
|
|
|
* @return name:video_arr type:array default:-- desc:视频地址[选集列表]
|
|
|
* @return name:video_arr.id type:int default:-- desc:ID[请求视频模块其他接口参数:url_id]
|
|
@@ -416,6 +417,7 @@ class Video extends Base
|
|
|
$detail = VideoIntro::with(['videoArr'])->where($sel_where)->find()->toArray();
|
|
|
if($detail['is_deleted'] == 1 || $detail['status'] == 0)$this->error('该视频已下线');
|
|
|
$detail['follow_switch'] = PlatformSwitch::checkSwitch($this->user_id,$detail['id'],2);
|
|
|
+ $detail['switch_open'] = PlatformSwitch::checkSwitch($this->user_id,$detail['id'],7);
|
|
|
$detail['label_name'] = [];
|
|
|
if($detail['label']) {
|
|
|
$detail['label_name'] = explode(',',trim($detail['label'],','));
|
|
@@ -662,7 +664,7 @@ class Video extends Base
|
|
|
$url_id = input('post.url_id',0);
|
|
|
$content = input('post.content',0);
|
|
|
if(!$content) $this->error('请输入评论内容');
|
|
|
- $res = VideoComment::create(['user_id'=>$this->user_id,'content'=>$content,'video_id'=>$video_id,'url_id'=>$url_id,'video_type'=>$video_type]);;
|
|
|
+ $res = VideoComment::create(['user_id'=>$this->user_id,'content'=>$content,'video_id'=>$video_id,'url_id'=>$url_id,'video_type'=>$video_type]);
|
|
|
$detail =VideoComment::where('c.id',$res->id)
|
|
|
->alias('c')
|
|
|
->field('c.id,c.content,c.user_id,c.create_at,u.name,u.headimg')
|