正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -109,6 +109,9 @@ class BaseLogic extends Logic | @@ -109,6 +109,9 @@ class BaseLogic extends Logic | ||
| 109 | if($image_hash !== false){ | 109 | if($image_hash !== false){ |
| 110 | return $hash; | 110 | return $hash; |
| 111 | } | 111 | } |
| 112 | + $this->config = config('filesystems.disks.upload'); | ||
| 113 | + $this->uploads = config('upload.default_image'); | ||
| 114 | + $this->path = $this->config['root'].$this->uploads['path'].'/'; | ||
| 112 | $url = $this->path; | 115 | $url = $this->path; |
| 113 | $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); | 116 | $fileName = uniqid().rand(10000,99999).'.'.$files->getClientOriginalExtension(); |
| 114 | $res = $files->move($url,$fileName); | 117 | $res = $files->move($url,$fileName); |
-
请 注册 或 登录 后发表评论