From 44fc07e4efb0bf58ee4a6b0c8d9fd89110f1fc7d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 9 Jul 2024 10:37:30 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseAuthedController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/BaseAuthedController.class.php b/webapp/controller/BaseAuthedController.class.php index 02e6c1b9..84824e70 100644 --- a/webapp/controller/BaseAuthedController.class.php +++ b/webapp/controller/BaseAuthedController.class.php @@ -440,7 +440,7 @@ class BaseAuthedController extends BaseController { { $this->_updateUserInfo(array( 'gold' => function () use($itemNum) { - return "GREATEST(0, gold - ${itemNum})"; + return "gold - ${itemNum}"; }, 'consume_gold' => function () use ($itemNum){ return "consume_gold + ${itemNum}";