作者 lyh

gx

... ... @@ -50,8 +50,6 @@ class ImageController extends Controller
{
$this->request = request();
$this->param = $this->request->all();
var_dump($this->param);
die();
$this->config = config('filesystems.disks.upload');
$this->uploads = config('upload.default_image');
$this->get_param();
... ... @@ -66,26 +64,28 @@ class ImageController extends Controller
*/
public function get_param(){
$param = $this->param;
foreach ($param as $k => $v){
if(is_array($v)){
continue;
}
switch ($k){
case "order":
$this->order = $v;
break;
case 'page':
$this->page = $v;
break;
case 'row':
$this->row = $v;
break;
case "status":
$this->map['status'] = $v;
break;
default:
$this->map[$k] = $v;
break;
if(!empty($param)){
foreach ($param as $k => $v){
if(is_array($v)){
continue;
}
switch ($k){
case "order":
$this->order = $v;
break;
case 'page':
$this->page = $v;
break;
case 'row':
$this->row = $v;
break;
case "status":
$this->map['status'] = $v;
break;
default:
$this->map[$k] = $v;
break;
}
}
}
}
... ...