🐛 修复接口上传出现错误的 bug fix #83

This commit is contained in:
WispX
2020-03-02 07:21:35 +08:00
parent f79128866a
commit 4af1db0b18
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -16,7 +16,7 @@ class Upload extends Base
public function initialize()
{
// 是否允许游客上传
$token = $this->request->header('token', $this->request->input('token'));
$token = $this->request->header('token', $this->param('token'));
if (!$this->config['allowed_tourist_upload']) {
$token && $this->auth($token);
} else {
@@ -32,7 +32,7 @@ class Upload extends Base
Db::startTrans();
try {
$data = (action('index/upload/execute'))->execute($this->user);
$data = (new \app\index\controller\Upload)->execute($this->user);
Db::commit();
} catch (Exception $e) {