作者 lyh

gx

... ... @@ -58,15 +58,17 @@ class ImageController extends Controller
$this->config = config('filesystems.disks.upload');
$this->uploads = config('upload.default_image');
//上传路径设置
var_dump(1111);
if(!isset($this->param['image_type'])){
return response(['code'=>Code::USER_ERROR,'msg'=>'请设置类型']);
}
var_dump(22222);
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(1111);
var_dump(3333);
var_dump($this->path);
die();
}
... ...