|
...
|
...
|
@@ -250,7 +250,7 @@ class NewsLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function manager_uploads($files){
|
|
|
|
$this->uploads = config('upload.default_image');
|
|
|
|
$path = $this->uploads['path_b'].'/'.$this->user['project_id'].'/image_news/'.date('Y-m');
|
|
|
|
$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));
|
|
|
|
return $cosService->uploadFile($files,$path,$fileName);
|
...
|
...
|
|