作者 lyh

gx

@@ -150,6 +150,8 @@ class ImageController extends Controller @@ -150,6 +150,8 @@ class ImageController extends Controller
150 return $this->response('图片资源',Code::SUCCESS,['image'=>$hash]); 150 return $this->response('图片资源',Code::SUCCESS,['image'=>$hash]);
151 } 151 }
152 $url = $this->config['root'].'/'.$this->path; 152 $url = $this->config['root'].'/'.$this->path;
  153 + var_dump($url);
  154 + die();
153 $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); 155 $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension();
154 $res = $files->move($url,$fileName); 156 $res = $files->move($url,$fileName);
155 if ($res === false) { 157 if ($res === false) {