更新:修复后台视频上传目录与存在位置不一致的BUG

virtual
zwesy 2020-12-07 10:30:19 +08:00
parent 400a4b9270
commit 316013769b
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ class Upload extends BaseController
$video = request()->file('video'); $video = request()->file('video');
if($this->validate->checkVideo($video)){ if($this->validate->checkVideo($video)){
$src = Filesystem::disk('video')->putFile(date('Ymd'), $video, 'uniqid'); $src = Filesystem::disk('video')->putFile(date('Ymd'), $video, 'uniqid');
$src = $this->uploadPath . '/' . $src; $src = $this->uploadPath . '/videos/' . $src;
$return['src'] = $src; $return['src'] = $src;
File::add($video, $src, 'video'); //加入上传文件表 File::add($video, $src, 'video'); //加入上传文件表
return $this->json(0, 'ok', $return); return $this->json(0, 'ok', $return);