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