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; }