This commit is contained in:
hujiabin 2023-04-07 15:16:27 +08:00
parent 3b14400af6
commit fdaf16e172
2 changed files with 5 additions and 34 deletions

View File

@ -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(

View File

@ -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);