This commit is contained in:
hujiabin 2023-03-10 16:03:50 +08:00
parent 55847c49d7
commit 84cb8b16f8
3 changed files with 12 additions and 12 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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']){