|
...
|
...
|
@@ -257,6 +257,9 @@ class NewsLogic extends BaseLogic |
|
|
|
$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'] ?? 1618).rand(1,10000)) . '.' .$type;
|
|
|
|
if($this->user['project_id'] == 1618){
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($files, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
}
|
|
|
|
return getImageUrl($cosService->uploadFile($files,$path,$fileName));
|
|
|
|
}
|
|
|
|
/**
|
...
|
...
|
|