This commit is contained in:
hujiabin 2023-03-31 15:06:56 +08:00
parent 278402d3fc
commit 2b3e740dc9

View File

@ -72,7 +72,7 @@ class FragmentController extends BaseAuthedController
} }
// $mint = strval(\services\FormulaService::Weapon_Parts_Synthetic_Cost()); // $mint = strval(\services\FormulaService::Weapon_Parts_Synthetic_Cost());
$meta = mt\Parameter::getByName('jigsaw_merge_w_price'); $meta = mt\Parameter::getByName('jigsaw_merge_w_price');
$mint = $meta ? $meta['param_value'] : 30; $mint = $meta ? $meta['param_value'] : 20;
$this->_rspData(array( $this->_rspData(array(
'list' => $gun, 'list' => $gun,
'mint' => $mint 'mint' => $mint
@ -126,11 +126,11 @@ class FragmentController extends BaseAuthedController
//指定合成英雄 //指定合成英雄
$itemMeta = mt\Item::get($item_id); $itemMeta = mt\Item::get($item_id);
if (!$itemMeta){ if (!$itemMeta){
$this->_rspErr(1,'item_id param error'); $this->_rspErr(1,'item_id param error ' . $item_id);
return ; return ;
} }
if (!$itemMeta['type'] != \mt\Item::HERO_TYPE){ if ($itemMeta['type'] != \mt\Item::HERO_TYPE){
$this->_rspErr(1,'item_id param error (type)'); $this->_rspErr(1,'item_id param error (type)' . $item_id);
return ; return ;
} }
$this->_verificationFragment($param,\mt\Item::FRAGMENT_TYPE,\mt\Item::HERO_FRAGMENT_SUBTYPE_PRO); $this->_verificationFragment($param,\mt\Item::FRAGMENT_TYPE,\mt\Item::HERO_FRAGMENT_SUBTYPE_PRO);
@ -223,16 +223,16 @@ class FragmentController extends BaseAuthedController
case 2: case 2:
{ {
$meta = mt\Parameter::getByName('jigsaw_merge_w_price'); $meta = mt\Parameter::getByName('jigsaw_merge_w_price');
$mint = $meta ? $meta['param_value'] : 30; $mint = $meta ? $meta['param_value'] : 20;
if ($param){ if ($param){
//指定合成枪械 //指定合成枪械
$itemMeta = mt\Item::get($item_id); $itemMeta = mt\Item::get($item_id);
if (!$itemMeta){ if (!$itemMeta){
$this->_rspErr(1,'item_id param error'); $this->_rspErr(1,'item_id param error '. $item_id);
return ; return ;
} }
if ($itemMeta['type'] != \mt\Item::GUN_TYPE){ 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 ; return ;
} }
@ -338,19 +338,6 @@ class FragmentController extends BaseAuthedController
'skill_lv2' => 1, 'skill_lv2' => 1,
'rand_attr' => $baseAttr, 'rand_attr' => $baseAttr,
'lucky' => strval($heroLucky), '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' => 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)), 'hero_tili_max' => strval(round(FormulaService::Hero_NFT_Maximum_Physical_Strength(1,$heroLucky),3)),
'chip_strength_sum' =>0, 'chip_strength_sum' =>0,