2
This commit is contained in:
parent
3b14400af6
commit
fdaf16e172
@ -39,24 +39,13 @@ class FragmentController extends BaseAuthedController
|
|||||||
switch ($type) {
|
switch ($type) {
|
||||||
case 1:
|
case 1:
|
||||||
{
|
{
|
||||||
// $itemMetaList = mt\Item::getMetaListByType(mt\Item::HERO_TYPE);
|
$itemMetaList = mt\Item::getMetaListByType(mt\Item::HERO_TYPE);
|
||||||
// $hero = array();
|
$hero = array();
|
||||||
// foreach ($itemMetaList as $meta){
|
foreach ($itemMetaList as $meta){
|
||||||
// array_push($hero,$meta['id']);
|
array_push($hero,$meta['id']);
|
||||||
// }
|
}
|
||||||
$meta = mt\Parameter::getByName('jigsaw_merge_h_price');
|
$meta = mt\Parameter::getByName('jigsaw_merge_h_price');
|
||||||
$mint = $meta ? $meta['param_value'] : 100;
|
$mint = $meta ? $meta['param_value'] : 100;
|
||||||
$hero = array(
|
|
||||||
30100,
|
|
||||||
30500,
|
|
||||||
30600,
|
|
||||||
30700,
|
|
||||||
30900,
|
|
||||||
31000,
|
|
||||||
30200,
|
|
||||||
30300,
|
|
||||||
30400,
|
|
||||||
);
|
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
'list' => $hero,
|
'list' => $hero,
|
||||||
'mint' => $mint
|
'mint' => $mint
|
||||||
@ -70,7 +59,6 @@ class FragmentController extends BaseAuthedController
|
|||||||
foreach ($itemMetaList as $meta){
|
foreach ($itemMetaList as $meta){
|
||||||
array_push($gun,$meta['id']);
|
array_push($gun,$meta['id']);
|
||||||
}
|
}
|
||||||
// $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'] : 20;
|
$mint = $meta ? $meta['param_value'] : 20;
|
||||||
$this->_rspData(array(
|
$this->_rspData(array(
|
||||||
|
@ -130,17 +130,6 @@ class UserController extends BaseAuthedController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private function _addFreeItem(){
|
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();
|
$addItems =array();
|
||||||
foreach (mt\Parameter::getListValue('creator_present_items') as $itemsStr) {
|
foreach (mt\Parameter::getListValue('creator_present_items') as $itemsStr) {
|
||||||
list($itemId, $itemNum) = explode(':', $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();
|
$awardService = new services\AwardService();
|
||||||
$propertyChgService = new services\PropertyChgService();
|
$propertyChgService = new services\PropertyChgService();
|
||||||
$this->_addItems($addItems, $awardService, $propertyChgService);
|
$this->_addItems($addItems, $awardService, $propertyChgService);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user