1
This commit is contained in:
parent
55847c49d7
commit
84cb8b16f8
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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']){
|
||||
|
Loading…
x
Reference in New Issue
Block a user