Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9a6afe0

Browse files
authored
Merge pull requestkvnZero#25 from kvnZero/fix/InsertError
fix Insert方法更换的处理
2 parents264b9e3 +b37a5e2 commit9a6afe0

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 ($insertDataas$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)

[8]ページ先頭

©2009-2025 Movatter.jp