From b37a5e287f054ce1b23d1fe59f588b62153e9132 Mon Sep 17 00:00:00 2001 From: kvnZero Date: Tue, 25 Jun 2024 16:28:13 +0800 Subject: [PATCH] =?UTF-8?q?fix=20Insert=E6=96=B9=E6=B3=95=E6=9B=B4?= =?UTF-8?q?=E6=8D=A2=E7=9A=84=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/ApiJson/Method/PostMethod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ApiJson/Method/PostMethod.php b/app/ApiJson/Method/PostMethod.php index 30aa925..c4f3564 100644 --- a/app/ApiJson/Method/PostMethod.php +++ b/app/ApiJson/Method/PostMethod.php @@ -26,7 +26,7 @@ protected function process() } $insertIds = []; foreach ($insertData as $insertItem) { - $insertIds[] = $this->query->insertGetId($insertItem); //因为需要返回ID 直接insert($insertData)不能得到本次插入的ID 未找到相关可用方法替代 + $insertIds[] = $this->query->insert($insertItem); //因为需要返回ID 直接insert($insertData)不能得到本次插入的ID 未找到相关可用方法替代 } $result = $this->parseManyResponse($insertIds, $this->isQueryMany());