From 2cb0b2e2df7f2e57663d2f79ce922981f2690d02 Mon Sep 17 00:00:00 2001 From: yangduo Date: Mon, 10 Feb 2025 15:51:32 +0800 Subject: [PATCH] fix --- webapp/controller/BagController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index 276e0a9..8f4fcdc 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -178,7 +178,7 @@ class BagController{ ':accountid' => $account_id, ':id' => $item_id, )); - if (!$row || $row['status'] != 1 || $row['active_time'] < time()) { + if (!$row || $row['status'] != 1 || ($row['active_time'] > 0 && $row['active_time'] < time())) { phpcommon\sendError(ERR_USER_BASE + 2, '没有这个道具'); return; }