正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -252,7 +252,7 @@ class NewsLogic extends BaseLogic | @@ -252,7 +252,7 @@ class NewsLogic extends BaseLogic | ||
| 252 | $this->uploads = config('upload.default_image'); | 252 | $this->uploads = config('upload.default_image'); |
| 253 | $path = $this->uploads['path_b'].'/'.($this->user['project_id'] ?? 1618).'/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'] ?? 1618).rand(1,10000)); |
| 256 | return $cosService->uploadFile($files,$path,$fileName); | 256 | return $cosService->uploadFile($files,$path,$fileName); |
| 257 | } | 257 | } |
| 258 | /** | 258 | /** |
-
请 注册 或 登录 后发表评论