1
This commit is contained in:
parent
d45b7f6647
commit
753a9bcb3a
@ -476,10 +476,10 @@ class BagController extends BaseAuthedController {
|
|||||||
$this->_rspErr(1, "You don't have the hero yet");
|
$this->_rspErr(1, "You don't have the hero yet");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!$heroDb['token_id']){
|
// if (!$heroDb['token_id']){
|
||||||
$this->_rspErr(1, "this hero is not NFT");
|
// $this->_rspErr(1, "this hero is not NFT");
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
$this->_decItems(array(
|
$this->_decItems(array(
|
||||||
array(
|
array(
|
||||||
'item_id' => $itemMeta['id'],
|
'item_id' => $itemMeta['id'],
|
||||||
@ -509,10 +509,10 @@ class BagController extends BaseAuthedController {
|
|||||||
$this->_rspErr(1, "Unable to operate the battle hero");
|
$this->_rspErr(1, "Unable to operate the battle hero");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!$heroDb['token_id']){
|
// if (!$heroDb['token_id']){
|
||||||
$this->_rspErr(1, "this hero is not NFT");
|
// $this->_rspErr(1, "this hero is not NFT");
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
$this->_decItems(array(
|
$this->_decItems(array(
|
||||||
array(
|
array(
|
||||||
'item_id' => $itemMeta['id'],
|
'item_id' => $itemMeta['id'],
|
||||||
|
@ -222,10 +222,10 @@ class HeroController extends BaseAuthedController {
|
|||||||
$this->_rspErr(100, 'param error or null');
|
$this->_rspErr(100, 'param error or null');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!$heroDb['token_id']){
|
// if (!$heroDb['token_id']){
|
||||||
$this->_rspErr(1, "this hero is not NFT");
|
// $this->_rspErr(1, "this hero is not NFT");
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
Hero::update($heroUniId,array(
|
Hero::update($heroUniId,array(
|
||||||
'seal_type' => 0,
|
'seal_type' => 0,
|
||||||
"unseal_time" => myself()->_getNowTime()
|
"unseal_time" => myself()->_getNowTime()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user