作者 lyh

gx

@@ -58,15 +58,17 @@ class ImageController extends Controller @@ -58,15 +58,17 @@ class ImageController extends Controller
58 $this->config = config('filesystems.disks.upload'); 58 $this->config = config('filesystems.disks.upload');
59 $this->uploads = config('upload.default_image'); 59 $this->uploads = config('upload.default_image');
60 //上传路径设置 60 //上传路径设置
  61 + var_dump(1111);
61 if(!isset($this->param['image_type'])){ 62 if(!isset($this->param['image_type'])){
62 return response(['code'=>Code::USER_ERROR,'msg'=>'请设置类型']); 63 return response(['code'=>Code::USER_ERROR,'msg'=>'请设置类型']);
63 } 64 }
  65 + var_dump(22222);
64 if(isset($this->param['refer_type']) && $this->param['refer_type'] == 1){ 66 if(isset($this->param['refer_type']) && $this->param['refer_type'] == 1){
65 $this->path = $this->uploads['path_a'].'/'.$this->image_type[$this->param['image_type']].'/'.date('Y-m'); 67 $this->path = $this->uploads['path_a'].'/'.$this->image_type[$this->param['image_type']].'/'.date('Y-m');
66 }else{ 68 }else{
67 $this->path = $this->uploads['path_b'].'/'.$this->cache['project_id'].'/'.$this->image_type[$this->param['image_type']].'/'.date('Y-m'); 69 $this->path = $this->uploads['path_b'].'/'.$this->cache['project_id'].'/'.$this->image_type[$this->param['image_type']].'/'.date('Y-m');
68 } 70 }
69 - var_dump(1111); 71 + var_dump(3333);
70 var_dump($this->path); 72 var_dump($this->path);
71 die(); 73 die();
72 } 74 }