From 84cb8b16f8d3e613224dc047a3304fecfa46d1be Mon Sep 17 00:00:00 2001 From: hujiabin Date: Fri, 10 Mar 2023 16:03:50 +0800 Subject: [PATCH] 1 --- webapp/controller/ChipController.class.php | 8 ++++---- webapp/controller/GunController.class.php | 8 ++++---- webapp/controller/HeroController.class.php | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/webapp/controller/ChipController.class.php b/webapp/controller/ChipController.class.php index feef0d66..61f244a7 100644 --- a/webapp/controller/ChipController.class.php +++ b/webapp/controller/ChipController.class.php @@ -156,10 +156,10 @@ class ChipController extends BaseAuthedController $this->_rspErr(1, "Unable to use nft chip"); return; } - if ($chipDbParam['state'] == Chip::FREE_STATE) { - $this->_rspErr(1, "Unable to use free chip"); - return; - } +// if ($chipDbParam['state'] == Chip::FREE_STATE) { +// $this->_rspErr(1, "Unable to use free chip"); +// return; +// } if (count(array_filter(explode("|",$chipDbParam['inlay_state']))) > 0){ $this->_rspErr(1, "The used chip"); return; diff --git a/webapp/controller/GunController.class.php b/webapp/controller/GunController.class.php index 03544e25..4bbd2a88 100644 --- a/webapp/controller/GunController.class.php +++ b/webapp/controller/GunController.class.php @@ -847,10 +847,10 @@ class GunController extends BaseAuthedController { $this->_rspErr(100, 'NFT cannot be a material'); return; } - if ($costGunDb['state'] == Gun::FREE_STATE){ - $this->_rspErr(100, 'Unable to use free gun'); - return; - } +// if ($costGunDb['state'] == Gun::FREE_STATE){ +// $this->_rspErr(100, 'Unable to use free gun'); +// return; +// } if ($gunDb['gun_lv'] != $costGunDb['gun_lv']){ $this->_rspErr(100, 'You need the same level to do it'); return; diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index f28a17c7..59e114a3 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -186,10 +186,10 @@ class HeroController extends BaseAuthedController { $this->_rspErr(100, 'NFT cannot be a material'); return; } - if ($costHeroDb['state'] == Hero::FREE_STATE){ - $this->_rspErr(100, 'Unable to use free hero'); - return; - } +// if ($costHeroDb['state'] == Hero::FREE_STATE){ +// $this->_rspErr(100, 'Unable to use free hero'); +// return; +// } switch ($heroDb['hero_lv']){ case Hero::LV_1:{ if ($heroDb['hero_lv'] < $costHeroDb['hero_lv']){