From fc00642f2bcd25faaa9b618d7fe4a525c005bc06 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Thu, 25 Apr 2024 14:30:01 +0800 Subject: [PATCH] 1 --- webapp/controller/OtherController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/OtherController.class.php b/webapp/controller/OtherController.class.php index f5429813..79c81f51 100644 --- a/webapp/controller/OtherController.class.php +++ b/webapp/controller/OtherController.class.php @@ -78,7 +78,7 @@ class OtherController extends BaseAuthedController { } break; case self::BAG :{ - $res = myself()->_getSelfMysql()->execQueryOne("SELECT COUNT(idx) as totalNum FROM t_bag WHERE account_id=:account AND is_old=:is_old LIMIT 1",array( + $res = myself()->_getSelfMysql()->execQueryOne("SELECT COUNT(idx) as totalNum FROM t_bag WHERE account_id=:account AND item_num>0 AND is_old=:is_old LIMIT 1",array( 'account' => myself()->_getAccountId(), 'is_old' => 0, ));