mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
修正Query类的value和column方法
This commit is contained in:
@@ -395,7 +395,7 @@ class Query
|
|||||||
public function value($field, $default = null, $force = false)
|
public function value($field, $default = null, $force = false)
|
||||||
{
|
{
|
||||||
$result = false;
|
$result = false;
|
||||||
if (empty($options['fetch_sql']) && !empty($this->options['cache'])) {
|
if (empty($this->options['fetch_sql']) && !empty($this->options['cache'])) {
|
||||||
// 判断查询缓存
|
// 判断查询缓存
|
||||||
$cache = $this->options['cache'];
|
$cache = $this->options['cache'];
|
||||||
if (empty($this->options['table'])) {
|
if (empty($this->options['table'])) {
|
||||||
@@ -438,7 +438,7 @@ class Query
|
|||||||
public function column($field, $key = '')
|
public function column($field, $key = '')
|
||||||
{
|
{
|
||||||
$result = false;
|
$result = false;
|
||||||
if (empty($options['fetch_sql']) && !empty($this->options['cache'])) {
|
if (empty($this->options['fetch_sql']) && !empty($this->options['cache'])) {
|
||||||
// 判断查询缓存
|
// 判断查询缓存
|
||||||
$cache = $this->options['cache'];
|
$cache = $this->options['cache'];
|
||||||
if (empty($this->options['table'])) {
|
if (empty($this->options['table'])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user