diff --git a/webapp/controller/ChipController.class.php b/webapp/controller/ChipController.class.php index 3a5e1aec..90f9cc1f 100644 --- a/webapp/controller/ChipController.class.php +++ b/webapp/controller/ChipController.class.php @@ -25,9 +25,7 @@ class ChipController extends BaseAuthedController $chipList = Chip::all($type); $chipDtoList = array(); foreach ($chipList as $item) { - if ($item['inlay_state'] == 0){ - array_push($chipDtoList, Chip::toDto($item)); - } + array_push($chipDtoList, Chip::toDto($item)); } $this->_rspData(array( 'data' => $chipDtoList, @@ -44,9 +42,7 @@ class ChipController extends BaseAuthedController $chipList = Chip::all($type); $chipDtoList = array(); foreach ($chipList as $item) { - if ($item['inlay_state'] == 0){ - array_push($chipDtoList, Chip::toDto($item)); - } + array_push($chipDtoList, Chip::toDto($item)); } $data = $this->_orderByChip($chipDtoList,$order); $this->_rspData(array( @@ -496,10 +492,6 @@ class ChipController extends BaseAuthedController private function _inLayNewAttr($hero_id){ $hero = Hero::find($hero_id); - if (! $hero){ - $this->_rspErr(1, 'Not enough hero'); - return; - } $chipAttr = []; if (! $hero['chip_ids'] ){ return $hero; @@ -527,10 +519,6 @@ class ChipController extends BaseAuthedController private function _inLayNewAttrGun($gun_id){ $gun = Gun::find($gun_id); - if (! $gun){ - $this->_rspErr(1, 'Not enough gun'); - return; - } $chipAttr = []; if (! $gun['chip_ids'] ){ return $gun;