diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index a5faa827..5494ba63 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -476,10 +476,10 @@ class BagController extends BaseAuthedController { $this->_rspErr(1, "You don't have the hero yet"); return; } - if (!$heroDb['token_id']){ - $this->_rspErr(1, "this hero is not NFT"); - return; - } +// if (!$heroDb['token_id']){ +// $this->_rspErr(1, "this hero is not NFT"); +// return; +// } $this->_decItems(array( array( 'item_id' => $itemMeta['id'], @@ -509,10 +509,10 @@ class BagController extends BaseAuthedController { $this->_rspErr(1, "Unable to operate the battle hero"); return; } - if (!$heroDb['token_id']){ - $this->_rspErr(1, "this hero is not NFT"); - return; - } +// if (!$heroDb['token_id']){ +// $this->_rspErr(1, "this hero is not NFT"); +// return; +// } $this->_decItems(array( array( 'item_id' => $itemMeta['id'], diff --git a/webapp/controller/HeroController.class.php b/webapp/controller/HeroController.class.php index 9c1f8691..dba2dabc 100644 --- a/webapp/controller/HeroController.class.php +++ b/webapp/controller/HeroController.class.php @@ -222,10 +222,10 @@ class HeroController extends BaseAuthedController { $this->_rspErr(100, 'param error or null'); return; } - if (!$heroDb['token_id']){ - $this->_rspErr(1, "this hero is not NFT"); - return; - } +// if (!$heroDb['token_id']){ +// $this->_rspErr(1, "this hero is not NFT"); +// return; +// } Hero::update($heroUniId,array( 'seal_type' => 0, "unseal_time" => myself()->_getNowTime()