diff --git a/webapp/controller/TankController.class.php b/webapp/controller/TankController.class.php index d4d721d..bd37f78 100644 --- a/webapp/controller/TankController.class.php +++ b/webapp/controller/TankController.class.php @@ -312,6 +312,10 @@ class TankController{ ':accountid' => $account_id, ':tank_id' => $exchangetank_id, )); + if (!$row_exchange) { + phpcommon\sendError(ERR_USER_BASE + 2, '没有这个皮肤'); + return; + } $exchange_ret = $conn->execScript('UPDATE tank SET tank_status=0, modify_time=:modify_time ' . ' WHERE accountid = :account_id AND tank_id = :tank_id;', array(