Skip to content

Commit b37a5e2

Browse files
committed
fix Insert方法更换的处理
1 parent ea6d55a commit b37a5e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/ApiJson/Method/PostMethod.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ protected function process()
2626
}
2727
$insertIds = [];
2828
foreach ($insertData as $insertItem) {
29-
$insertIds[] = $this->query->insertGetId($insertItem); //因为需要返回ID 直接insert($insertData)不能得到本次插入的ID 未找到相关可用方法替代
29+
$insertIds[] = $this->query->insert($insertItem); //因为需要返回ID 直接insert($insertData)不能得到本次插入的ID 未找到相关可用方法替代
3030
}
3131
$result = $this->parseManyResponse($insertIds, $this->isQueryMany());
3232

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy