正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -23,7 +23,7 @@ class FileController | @@ -23,7 +23,7 @@ class FileController | ||
| 23 | public $token = '';//token | 23 | public $token = '';//token |
| 24 | 24 | ||
| 25 | public $cache = '';//缓存数据 | 25 | public $cache = '';//缓存数据 |
| 26 | - public $upload_location = 0; | 26 | + public $upload_location = 1; |
| 27 | public $file_type = [ | 27 | public $file_type = [ |
| 28 | 2 => 'other',//其他 | 28 | 2 => 'other',//其他 |
| 29 | 1 => 'video',//视频 | 29 | 1 => 'video',//视频 |
| @@ -265,8 +265,8 @@ class FileController | @@ -265,8 +265,8 @@ class FileController | ||
| 265 | //根据项目上传标识区分上传到cos/本地 | 265 | //根据项目上传标识区分上传到cos/本地 |
| 266 | $projectModel = new Project(); | 266 | $projectModel = new Project(); |
| 267 | $project_info = $projectModel->read(['id' => $this->cache['project_id']], ['project_location']); | 267 | $project_info = $projectModel->read(['id' => $this->cache['project_id']], ['project_location']); |
| 268 | - if ($project_info['project_location'] == 0) {//通项目时 上传到cos | ||
| 269 | - $this->upload_location = 1;//1:上传到本地 | 268 | + if ($project_info['project_location'] != 0) {//通项目时 上传到cos |
| 269 | + $this->upload_location = 0;//1:上传到本地 | ||
| 270 | } | 270 | } |
| 271 | } | 271 | } |
| 272 | $this->path = $this->uploads['path_b'].'/'.$this->cache['project_id'].'/'.$this->file_type[$this->param['refer']].'/'.date('Y-m'); | 272 | $this->path = $this->uploads['path_b'].'/'.$this->cache['project_id'].'/'.$this->file_type[$this->param['refer']].'/'.date('Y-m'); |
-
请 注册 或 登录 后发表评论