From 2905ca262db5557f8a402d1b6d0fe94173f804d8 Mon Sep 17 00:00:00 2001 From: limu Date: Tue, 30 Jan 2024 14:54:55 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=A0=E5=8F=82=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/User.php b/app/api/controller/User.php index 2c5617d7..0e4d7b53 100644 --- a/app/api/controller/User.php +++ b/app/api/controller/User.php @@ -142,7 +142,7 @@ class User extends Controller public function addGoodsSource(): Json { $model = new GoodsSourceModel(); - if (!$model->addSource($this->postForm())) { + if (!$model->addSource($this->request->param())) { return $this->renderSuccess($model->getError() ?: '操作失败'); } return $this->renderSuccess('提交成功,请耐心等待');