作者 何书鹏
1 个管道 的构建 失败 耗费 1 秒

视频详情

... ... @@ -272,7 +272,6 @@ class User extends Api
$this->error('请先完善个人头像信息');
}
$qiniu = get_addon_config('qiniu')['cdnurl'];
$data = Db::name('classes')
->alias('a')
->join('study b','a.study_id = b.id')
... ... @@ -323,9 +322,9 @@ class User extends Api
$data['is_join'] = 2;
}
//视频地址以及首帧图
$data['video_file'] = $qiniu.$data['video_file'];
$data['video_file'] = cdnurl($data['video_file'],true);
// $video_info = json_decode(file_get_contents($data['video_file'] . '?avinfo'), true);
$data['video_image'] = $qiniu.$data['video_image'];
$data['video_image'] = cdnurl($data['video_image'],true);
$data['expirationtime'] = date('Y-m-d H:i:s',$data['expirationtime']);
$data['min'] = ceil($data['duration']/60);
// 视频快进开关
... ...