mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修改setInc,setDec方法执行错误的bug
在调用setInc,setDec方法时处理$this->duplicate = [];为空。否则在209行的 // 存在数据副本 $data = array_diff_assoc($data, $this->duplicate); 验证不通过
This commit is contained in:
@@ -706,6 +706,7 @@ class Model
|
|||||||
$step = '-' . $step;
|
$step = '-' . $step;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$this->duplicate = [];
|
||||||
return $this->setField($field, ['exp', $field . '+' . $step]);
|
return $this->setField($field, ['exp', $field . '+' . $step]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -735,6 +736,7 @@ class Model
|
|||||||
$step = '-' . $step;
|
$step = '-' . $step;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$this->duplicate = [];
|
||||||
return $this->setField($field, ['exp', $field . '-' . $step]);
|
return $this->setField($field, ['exp', $field . '-' . $step]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user