作者 lyh

gx

@@ -54,6 +54,8 @@ class ImageController extends Controller @@ -54,6 +54,8 @@ class ImageController extends Controller
54 $this->token = $this->request->header('token'); 54 $this->token = $this->request->header('token');
55 $this->cache = Cache::get($this->token); 55 $this->cache = Cache::get($this->token);
56 $this->param = $this->request->all(); 56 $this->param = $this->request->all();
  57 + var_dump($this->param);
  58 + die();
57 $this->config = config('filesystems.disks.upload'); 59 $this->config = config('filesystems.disks.upload');
58 $this->uploads = config('upload.default_image'); 60 $this->uploads = config('upload.default_image');
59 } 61 }
@@ -160,7 +162,7 @@ class ImageController extends Controller @@ -160,7 +162,7 @@ class ImageController extends Controller
160 return $this->response($files->getError(), Code::USER_ERROR); 162 return $this->response($files->getError(), Code::USER_ERROR);
161 } 163 }
162 } 164 }
163 - 165 + $this->saveMysql($imageModel,$files,$fileName,$hash);
164 return $this->response('图片资源',Code::SUCCESS,['image'=>$hash]); 166 return $this->response('图片资源',Code::SUCCESS,['image'=>$hash]);
165 } 167 }
166 168
@@ -184,6 +186,7 @@ class ImageController extends Controller @@ -184,6 +186,7 @@ class ImageController extends Controller
184 if ($rs === false) { 186 if ($rs === false) {
185 return $this->response('添加失败', Code::USER_ERROR); 187 return $this->response('添加失败', Code::USER_ERROR);
186 } 188 }
  189 + return true;
187 } 190 }
188 /** 191 /**
189 * @param $info 192 * @param $info