diff --git a/webapp/controller/FragmentController.class.php b/webapp/controller/FragmentController.class.php index 1189d0ad..68f31123 100644 --- a/webapp/controller/FragmentController.class.php +++ b/webapp/controller/FragmentController.class.php @@ -72,7 +72,7 @@ class FragmentController extends BaseAuthedController } // $mint = strval(\services\FormulaService::Weapon_Parts_Synthetic_Cost()); $meta = mt\Parameter::getByName('jigsaw_merge_w_price'); - $mint = $meta ? $meta['param_value'] : 30; + $mint = $meta ? $meta['param_value'] : 20; $this->_rspData(array( 'list' => $gun, 'mint' => $mint @@ -126,11 +126,11 @@ class FragmentController extends BaseAuthedController //指定合成英雄 $itemMeta = mt\Item::get($item_id); if (!$itemMeta){ - $this->_rspErr(1,'item_id param error'); + $this->_rspErr(1,'item_id param error ' . $item_id); return ; } - if (!$itemMeta['type'] != \mt\Item::HERO_TYPE){ - $this->_rspErr(1,'item_id param error (type)'); + if ($itemMeta['type'] != \mt\Item::HERO_TYPE){ + $this->_rspErr(1,'item_id param error (type)' . $item_id); return ; } $this->_verificationFragment($param,\mt\Item::FRAGMENT_TYPE,\mt\Item::HERO_FRAGMENT_SUBTYPE_PRO); @@ -223,16 +223,16 @@ class FragmentController extends BaseAuthedController case 2: { $meta = mt\Parameter::getByName('jigsaw_merge_w_price'); - $mint = $meta ? $meta['param_value'] : 30; + $mint = $meta ? $meta['param_value'] : 20; if ($param){ //指定合成枪械 $itemMeta = mt\Item::get($item_id); if (!$itemMeta){ - $this->_rspErr(1,'item_id param error'); + $this->_rspErr(1,'item_id param error '. $item_id); return ; } if ($itemMeta['type'] != \mt\Item::GUN_TYPE){ - $this->_rspErr(1,'item_id param error (type)'); + $this->_rspErr(1,'item_id param error (type) ' . $item_id); return ; } @@ -338,19 +338,6 @@ class FragmentController extends BaseAuthedController 'skill_lv2' => 1, 'rand_attr' => $baseAttr, 'lucky' => strval($heroLucky), - 'skill_points' => 0, - 'skill_common' => [ - "100100", - "100120", - "100140", - "100160", - "100180", - "100200", - "100220", - "100240", - "100260", - "100280" - ], 'hero_tili' => strval(round(FormulaService::Hero_NFT_Maximum_Physical_Strength(1,$heroLucky),3)), 'hero_tili_max' => strval(round(FormulaService::Hero_NFT_Maximum_Physical_Strength(1,$heroLucky),3)), 'chip_strength_sum' =>0,