From 19abfdaaf881edf7e0893cc2d09d39efb7c246fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 21 Feb 2025 12:38:05 +0800 Subject: [PATCH] Update Model.php --- plugin/think-library/src/Model.php | 27 --------------------------- 1 file changed, 27 deletions(-) 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)); - } }