diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 755f454b..b3d365a7 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -2605,7 +2605,9 @@ class Query public function chunk($count, $callback, $column = null, $order = 'asc') { $options = $this->getOptions(); - + if (empty($options['table'])) { + $options['table'] = $this->getTable(); + } $column = $column ?: $this->getPk($options); if (isset($options['order'])) {