改进field方法

This commit is contained in:
thinkphp
2018-02-14 22:31:41 +08:00
parent 9606f235f2
commit 680be85343

View File

@@ -793,7 +793,7 @@ class Query
} }
if (isset($this->options['field'])) { if (isset($this->options['field'])) {
$field = array_merge($this->options['field'], $field); $field = array_merge((array) $this->options['field'], $field);
} }
$this->options['field'] = array_unique($field); $this->options['field'] = array_unique($field);
return $this; return $this;