修正了延迟递减时实际为递增的错误。

由于在缓存中存放的递减值为负值,所以这里在拿出这个缓存值(缓存值本身为负值)后运算符应该为+,否则的话运算结果是错误的。
This commit is contained in:
zzpuser
2016-08-03 19:36:34 +08:00
committed by GitHub
parent e3339ad158
commit 2fb6ce8021

View File

@@ -596,7 +596,7 @@ class Query
return true; // 等待下次写入
}
}
return $this->setField($field, ['exp', $field . '-' . $step]);
return $this->setField($field, ['exp', $field . '+' . $step]);
}
/**