|
...
|
...
|
@@ -109,7 +109,7 @@ class HandleNewsText extends Command |
|
|
|
$this->uploads = config('upload.default_image');
|
|
|
|
$path = $this->uploads['path_b'].'/'.($this->project_id).'/image_news/'.date('Y-m');
|
|
|
|
$cosService = new CosService();
|
|
|
|
$fileName = md5(uniqid() . '_' . time() . '.' . ($this->user['project_id'] ?? 1618).rand(1,10000)) . '.' .$type;
|
|
|
|
$fileName = md5(uniqid() . '_' . time() . '.' . ($this->project_id).rand(1,10000)) . '.' .$type;
|
|
|
|
return getImageUrl($cosService->uploadFile($files,$path,$fileName));
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|