mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
Merge pull request #290 from youyoushanyu/master
解决Model类db()方法在$this->field=true时重复被调用的而引发的问题
This commit is contained in:
@@ -158,7 +158,7 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
|
||||
if (!empty($this->field)) {
|
||||
if (true === $this->field) {
|
||||
$type = $this->db()->getTableInfo('', 'type');
|
||||
$type = $query->getTableInfo('', 'type');
|
||||
} else {
|
||||
$type = [];
|
||||
foreach ((array) $this->field as $key => $val) {
|
||||
|
||||
Reference in New Issue
Block a user