作者 lyh

gx

@@ -109,6 +109,9 @@ class BaseLogic extends Logic @@ -109,6 +109,9 @@ class BaseLogic extends Logic
109 if($image_hash !== false){ 109 if($image_hash !== false){
110 return $hash; 110 return $hash;
111 } 111 }
  112 + $this->config = config('filesystems.disks.upload');
  113 + $this->uploads = config('upload.default_image');
  114 + $this->path = $this->config['root'].$this->uploads['path'].'/';
112 $url = $this->path; 115 $url = $this->path;
113 $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); 116 $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension();
114 $res = $files->move($url,$fileName); 117 $res = $files->move($url,$fileName);