作者 lyh

gx

... ... @@ -54,6 +54,8 @@ class ImageController extends Controller
$this->token = $this->request->header('token');
$this->cache = Cache::get($this->token);
$this->param = $this->request->all();
var_dump($this->param);
die();
$this->config = config('filesystems.disks.upload');
$this->uploads = config('upload.default_image');
}
... ... @@ -160,7 +162,7 @@ class ImageController extends Controller
return $this->response($files->getError(), Code::USER_ERROR);
}
}
$this->saveMysql($imageModel,$files,$fileName,$hash);
return $this->response('图片资源',Code::SUCCESS,['image'=>$hash]);
}
... ... @@ -184,6 +186,7 @@ class ImageController extends Controller
if ($rs === false) {
return $this->response('添加失败', Code::USER_ERROR);
}
return true;
}
/**
* @param $info
... ...