作者 lyh

hx

@@ -257,6 +257,9 @@ class NewsLogic extends BaseLogic @@ -257,6 +257,9 @@ class NewsLogic extends BaseLogic
257 $path = $this->uploads['path_b'].'/'.($this->user['project_id'] ?? 1618).'/image_news/'.date('Y-m'); 257 $path = $this->uploads['path_b'].'/'.($this->user['project_id'] ?? 1618).'/image_news/'.date('Y-m');
258 $cosService = new CosService(); 258 $cosService = new CosService();
259 $fileName = md5(uniqid() . '_' . time() . '.' . ($this->user['project_id'] ?? 1618).rand(1,10000)) . '.' .$type; 259 $fileName = md5(uniqid() . '_' . time() . '.' . ($this->user['project_id'] ?? 1618).rand(1,10000)) . '.' .$type;
  260 + if($this->user['project_id'] == 1618){
  261 + @file_put_contents(storage_path('logs/lyh_error.log'), var_export($files, true) . PHP_EOL, FILE_APPEND);
  262 + }
260 return getImageUrl($cosService->uploadFile($files,$path,$fileName)); 263 return getImageUrl($cosService->uploadFile($files,$path,$fileName));
261 } 264 }
262 /** 265 /**