Skip to content

Commit 053e6dc

Browse files
committed
Merge branch 'master' of https://github.com/top-think/think-orm
# Conflicts: # src/Model.php # src/db/Query.php
2 parents 593494b + 1f70cf8 commit 053e6dc

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/Model.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,8 +526,6 @@ protected function insertData($sequence)
526526

527527
$result = $this->db(false)->strict(false)->field($allowFields)->insert($this->data);
528528

529-
$pk = $this->getPk();
530-
531529
// 获取自动增长主键
532530
if ($result && $insertId = $this->db(false)->getLastInsID($sequence)) {
533531
$pk = $this->getPk();

src/db/Query.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2408,8 +2408,7 @@ public function findOrFail($data = null)
24082408
public function chunk($count, $callback, $column = null, $order = 'asc')
24092409
{
24102410
$options = $this->getOptions();
2411-
2412-
$column = $column ?: $this->getPk($options);
2411+
$column = $column ?: $this->getPk($options);
24132412

24142413
if (isset($options['order'])) {
24152414
if ($this->config['debug']) {

0 commit comments

Comments
 (0)