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