正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -250,7 +250,7 @@ class NewsLogic extends BaseLogic | @@ -250,7 +250,7 @@ class NewsLogic extends BaseLogic | ||
| 250 | */ | 250 | */ |
| 251 | public function manager_uploads($files){ | 251 | public function manager_uploads($files){ |
| 252 | $this->uploads = config('upload.default_image'); | 252 | $this->uploads = config('upload.default_image'); |
| 253 | - $path = $this->uploads['path_b'].'/'.$this->user['project_id'].'/image_news/'.date('Y-m'); | 253 | + $path = $this->uploads['path_b'].'/'.($this->user['project_id'] ?? 1618).'/image_news/'.date('Y-m'); |
| 254 | $cosService = new CosService(); | 254 | $cosService = new CosService(); |
| 255 | $fileName = md5(uniqid() . '_' . time() . '.' . $this->user['project_id'].rand(1,10000)); | 255 | $fileName = md5(uniqid() . '_' . time() . '.' . $this->user['project_id'].rand(1,10000)); |
| 256 | return $cosService->uploadFile($files,$path,$fileName); | 256 | return $cosService->uploadFile($files,$path,$fileName); |
-
请 注册 或 登录 后发表评论