From 0c5d3c7d3653f3373ea09f33d9aa3248b5e2c3d1 Mon Sep 17 00:00:00 2001 From: wangwei01 Date: Fri, 12 Jul 2019 19:14:51 +0800 Subject: [PATCH] 1 --- webapp/controller/TankController.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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(