mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 12:42:48 +08:00
改进Query类的field方法
This commit is contained in:
@@ -747,9 +747,9 @@ class Query
|
||||
}
|
||||
|
||||
if (isset($this->options['field'])) {
|
||||
$field = $this->options['field'] + $field;
|
||||
$field = array_merge($this->options['field'], $field);
|
||||
}
|
||||
$this->options['field'] = $field;
|
||||
$this->options['field'] = array_unique($field);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user