正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -109,7 +109,7 @@ class HandleNewsText extends Command | @@ -109,7 +109,7 @@ class HandleNewsText extends Command | ||
| 109 | $this->uploads = config('upload.default_image'); | 109 | $this->uploads = config('upload.default_image'); |
| 110 | $path = $this->uploads['path_b'].'/'.($this->project_id).'/image_news/'.date('Y-m'); | 110 | $path = $this->uploads['path_b'].'/'.($this->project_id).'/image_news/'.date('Y-m'); |
| 111 | $cosService = new CosService(); | 111 | $cosService = new CosService(); |
| 112 | - $fileName = md5(uniqid() . '_' . time() . '.' . ($this->user['project_id'] ?? 1618).rand(1,10000)) . '.' .$type; | 112 | + $fileName = md5(uniqid() . '_' . time() . '.' . ($this->project_id).rand(1,10000)) . '.' .$type; |
| 113 | return getImageUrl($cosService->uploadFile($files,$path,$fileName)); | 113 | return getImageUrl($cosService->uploadFile($files,$path,$fileName)); |
| 114 | } | 114 | } |
| 115 | } | 115 | } |
-
请 注册 或 登录 后发表评论