Browse Source

Update Upload.php

Anyon 2 years ago
parent
commit
d6075b9ec8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/api/Upload.php

+ 1 - 1
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' => '名称不能为空!',