diff --git a/plugin/think-library/src/Model.php b/plugin/think-library/src/Model.php index d5e9d6727..c616873f2 100644 --- a/plugin/think-library/src/Model.php +++ b/plugin/think-library/src/Model.php @@ -19,7 +19,6 @@ declare (strict_types=1); namespace think\admin; use think\admin\helper\QueryHelper; -use think\db\Express; /** * 基础模型类 @@ -116,30 +115,4 @@ abstract class Model extends \think\Model return parent::__callStatic($method, $args); }); } - - - /** - * 字段值增长 - * @param string $field 字段名 - * @param float $step 增长值 - * @param int $lazyTime 延迟时间(秒) - * @return $this - */ - public function inc(string $field, float $step = 1, int $lazyTime = 0) - { - return $this->set($field, new Express('+', $step, $lazyTime)); - } - - /** - * 字段值减少. - * - * @param string $field 字段名 - * @param float $step 增长值 - * @param int $lazyTime 延迟时间(秒) - * @return $this - */ - public function dec(string $field, float $step = 1, int $lazyTime = 0) - { - return $this->set($field, new Express('-', $step, $lazyTime)); - } }