修正Query类setInc和setDec方法

This commit is contained in:
thinkphp
2016-10-16 19:26:04 +08:00
parent c37f1fc39b
commit 99300f8d4d

View File

@@ -578,8 +578,6 @@ class Query
// 清空查询条件
$this->options = [];
return true;
} else {
return $this->setField($field, $step);
}
}
return $this->setField($field, ['exp', $field . '+' . $step]);
@@ -609,8 +607,6 @@ class Query
// 清空查询条件
$this->options = [];
return true;
} else {
return $this->setField($field, $step);
}
}
return $this->setField($field, ['exp', $field . '-' . $step]);