作者 lyh

hx

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