From df0ead6364d77b7af3a51e456d432e84a3e74072 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Thu, 4 Mar 2021 23:53:41 +0800 Subject: [PATCH] modify --- Database/ActiveRecord.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Database/ActiveRecord.php b/Database/ActiveRecord.php index c61ba7f6..1660a9cf 100644 --- a/Database/ActiveRecord.php +++ b/Database/ActiveRecord.php @@ -52,7 +52,7 @@ class ActiveRecord extends BaseActiveRecord */ public function increment(string $column, int $value): bool|ActiveRecord { - if (!$this->mathematics([$column => $value], '-')) { + if (!$this->mathematics([$column => $value], '+')) { return false; } $this->{$column} += $value;