From d6075b9ec8a0e3ade10288bdcafbec2c0eecc4ad Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 17 Jun 2022 16:28:06 +0800 Subject: [PATCH] Update Upload.php --- app/admin/controller/api/Upload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/controller/api/Upload.php b/app/admin/controller/api/Upload.php index ba99d3e2b..367139daa 100644 --- a/app/admin/controller/api/Upload.php +++ b/app/admin/controller/api/Upload.php @@ -70,7 +70,7 @@ class Upload extends Controller [$name, $safe] = [input('name'), $this->getSafe()]; $data = ['uptype' => $this->getType(), 'safe' => intval($safe), 'key' => input('key')]; $file = SystemFile::mk()->data($this->_vali([ - 'path.value' => $data['key'], + 'xkey.value' => $data['key'], 'type.value' => $this->getType(), 'uuid.value' => AdminService::instance()->getUserId(), 'name.require' => '名称不能为空!',