Skip to content

Commit 9a6afe0

Browse files
authored
Merge pull request kvnZero#25 from kvnZero/fix/InsertError
fix Insert方法更换的处理
2 parents 264b9e3 + b37a5e2 commit 9a6afe0

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)