mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 15:02:47 +08:00
改进Model类和Query类 Model类的name属性改为static定义
This commit is contained in:
@@ -258,7 +258,7 @@ class Query
|
||||
}
|
||||
if ($lazyTime > 0) {
|
||||
// 延迟写入
|
||||
$guid = md5($this->name . '_' . $field . '_' . serialize($condition));
|
||||
$guid = md5($this->getTable() . '_' . $field . '_' . serialize($condition));
|
||||
$step = $this->lazyWrite($guid, $step, $lazyTime);
|
||||
if (empty($step)) {
|
||||
return true; // 等待下次写入
|
||||
@@ -285,7 +285,7 @@ class Query
|
||||
}
|
||||
if ($lazyTime > 0) {
|
||||
// 延迟写入
|
||||
$guid = md5($this->name . '_' . $field . '_' . serialize($condition));
|
||||
$guid = md5($this->getTable() . '_' . $field . '_' . serialize($condition));
|
||||
$step = $this->lazyWrite($guid, -$step, $lazyTime);
|
||||
if (empty($step)) {
|
||||
return true; // 等待下次写入
|
||||
|
||||
Reference in New Issue
Block a user