作者 lyh

gx

@@ -159,7 +159,7 @@ class ImageController extends Controller @@ -159,7 +159,7 @@ class ImageController extends Controller
159 return $this->response('图片资源',Code::SUCCESS,['image'=>$hash]); 159 return $this->response('图片资源',Code::SUCCESS,['image'=>$hash]);
160 } 160 }
161 $url = $this->config['root'].'/'.$this->path; 161 $url = $this->config['root'].'/'.$this->path;
162 - var_dump($url); 162 + var_dump($this->path);
163 die(); 163 die();
164 $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); 164 $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension();
165 $res = $files->move($url,$fileName); 165 $res = $files->move($url,$fileName);