This commit is contained in:
hujiabin 2024-04-16 16:33:34 +08:00
parent d45b7f6647
commit 753a9bcb3a
2 changed files with 12 additions and 12 deletions

View File

@ -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'],

View File

@ -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()