作者 lyh

gx

... ... @@ -55,22 +55,18 @@ class ImageController extends Controller
return response(['code'=>Code::USER_LOGIN_ERROE,'msg'=>'当前用户未登录']);
}
$this->param = $this->request->all();
$this->config = config('filesystems.disks.upload');
$this->uploads = config('upload.default_image');
//上传路径设置
var_dump($this->param['image_type']);
var_dump($this->param);
die();
if(!isset($this->param['image_type'])){
return response(['code'=>Code::USER_LOGIN_ERROE,'msg'=>'当前用户未登录']);
return response(['msg'=>'参数错误']);
}
var_dump(22222);
$this->config = config('filesystems.disks.upload');
$this->uploads = config('upload.default_image');
if(isset($this->param['refer_type']) && $this->param['refer_type'] == 1){
$this->path = $this->uploads['path_a'].'/'.$this->image_type[$this->param['image_type']].'/'.date('Y-m');
}else{
$this->path = $this->uploads['path_b'].'/'.$this->cache['project_id'].'/'.$this->image_type[$this->param['image_type']].'/'.date('Y-m');
}
var_dump(3333);
var_dump($this->path);
die();
}
/**
... ...