作者 lyh

gx

@@ -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 }