内核更新
This commit is contained in:
@@ -566,7 +566,11 @@ class Query
|
||||
$guid = md5($this->getTable() . '_' . $field . '_' . serialize($condition));
|
||||
$step = $this->lazyWrite('inc', $guid, $step, $lazyTime);
|
||||
if (false === $step) {
|
||||
return true; // 等待下次写入
|
||||
// 清空查询条件
|
||||
$this->options = [];
|
||||
return true;
|
||||
} else {
|
||||
return $this->setField($field, $step);
|
||||
}
|
||||
}
|
||||
return $this->setField($field, ['exp', $field . '+' . $step]);
|
||||
@@ -593,7 +597,11 @@ class Query
|
||||
$guid = md5($this->getTable() . '_' . $field . '_' . serialize($condition));
|
||||
$step = $this->lazyWrite('dec', $guid, $step, $lazyTime);
|
||||
if (false === $step) {
|
||||
return true; // 等待下次写入
|
||||
// 清空查询条件
|
||||
$this->options = [];
|
||||
return true;
|
||||
} else {
|
||||
return $this->setField($field, $step);
|
||||
}
|
||||
}
|
||||
return $this->setField($field, ['exp', $field . '-' . $step]);
|
||||
|
||||
Reference in New Issue
Block a user