mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-05-29 18:09:16 +08:00
调整文件上传 safe 类型2 # Anyon
This commit is contained in:
parent
daf5fcc90a
commit
0f13f8145b
@ -57,7 +57,7 @@ class Upload extends Controller
|
||||
*/
|
||||
public function state()
|
||||
{
|
||||
list($this->name, $this->safe) = [input('name', null), boolval(input('safe'))];
|
||||
list($this->name, $this->safe) = [input('name', null), intval(input('safe'))];
|
||||
$data = ['uptype' => $this->getType(), 'xkey' => input('xkey'), 'safe' => $this->safe];
|
||||
if ($info = Storage::instance($data['uptype'])->info($data['xkey'], $this->safe, $this->name)) {
|
||||
$data['url'] = $info['url'];
|
||||
|
Loading…
x
Reference in New Issue
Block a user