diff --git a/webapp/controller/FragmentController.class.php b/webapp/controller/FragmentController.class.php index 658ea969..531a8f16 100644 --- a/webapp/controller/FragmentController.class.php +++ b/webapp/controller/FragmentController.class.php @@ -39,24 +39,13 @@ class FragmentController extends BaseAuthedController switch ($type) { case 1: { -// $itemMetaList = mt\Item::getMetaListByType(mt\Item::HERO_TYPE); -// $hero = array(); -// foreach ($itemMetaList as $meta){ -// array_push($hero,$meta['id']); -// } + $itemMetaList = mt\Item::getMetaListByType(mt\Item::HERO_TYPE); + $hero = array(); + foreach ($itemMetaList as $meta){ + array_push($hero,$meta['id']); + } $meta = mt\Parameter::getByName('jigsaw_merge_h_price'); $mint = $meta ? $meta['param_value'] : 100; - $hero = array( - 30100, - 30500, - 30600, - 30700, - 30900, - 31000, - 30200, - 30300, - 30400, - ); $this->_rspData(array( 'list' => $hero, 'mint' => $mint @@ -70,7 +59,6 @@ class FragmentController extends BaseAuthedController foreach ($itemMetaList as $meta){ array_push($gun,$meta['id']); } -// $mint = strval(\services\FormulaService::Weapon_Parts_Synthetic_Cost()); $meta = mt\Parameter::getByName('jigsaw_merge_w_price'); $mint = $meta ? $meta['param_value'] : 20; $this->_rspData(array( diff --git a/webapp/controller/UserController.class.php b/webapp/controller/UserController.class.php index 5ace20d6..618880fc 100644 --- a/webapp/controller/UserController.class.php +++ b/webapp/controller/UserController.class.php @@ -130,17 +130,6 @@ class UserController extends BaseAuthedController { } private function _addFreeItem(){ -// $chipMeta = \mt\Item::getMetaListByType(\mt\Item::CHIP_TYPE); -// foreach ($chipMeta as $row){ -// Chip::addChip($row); -// } -// -// foreach (mt\Parameter::getListValue('creator_hero_id') as $heroId) { -// $heroMeta = mt\Item::get($heroId); -// if ($heroMeta) { -// Hero::addHero($heroMeta); -// } -// } $addItems =array(); foreach (mt\Parameter::getListValue('creator_present_items') as $itemsStr) { list($itemId, $itemNum) = explode(':', $itemsStr); @@ -152,12 +141,6 @@ class UserController extends BaseAuthedController { )); } } -// array_push($addItems, -// array( -// 'item_id' => V_ITEM_GOLD, -// 'item_num' => 50 -// )); - $awardService = new services\AwardService(); $propertyChgService = new services\PropertyChgService(); $this->_addItems($addItems, $awardService, $propertyChgService);