...
This commit is contained in:
parent
9ea995d7f5
commit
35a104281d
@ -92,7 +92,6 @@ class FirstTopupController extends BaseAuthedController
|
|||||||
array(
|
array(
|
||||||
'status' . $group => 2,
|
'status' . $group => 2,
|
||||||
),
|
),
|
||||||
|
|
||||||
);
|
);
|
||||||
// 发放奖励
|
// 发放奖励
|
||||||
$reward = mt\FirstTopup::getByGroup($group);
|
$reward = mt\FirstTopup::getByGroup($group);
|
||||||
@ -161,38 +160,38 @@ class FirstTopupController extends BaseAuthedController
|
|||||||
|
|
||||||
private function internalAddItem($propertyChgService, $itemMeta, $count)
|
private function internalAddItem($propertyChgService, $itemMeta, $count)
|
||||||
{
|
{
|
||||||
switch ($itemMeta['type']) {
|
switch ($itemMeta['type']) {
|
||||||
case mt\Item::HERO_TYPE: {
|
case mt\Item::HERO_TYPE: {
|
||||||
Hero::addHero($itemMeta);
|
Hero::addHero($itemMeta);
|
||||||
$propertyChgService->addHeroChg();
|
$propertyChgService->addHeroChg();
|
||||||
$propertyChgService->addUserChg();
|
$propertyChgService->addUserChg();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case mt\Item::HERO_SKIN_TYPE: {
|
case mt\Item::HERO_SKIN_TYPE: {
|
||||||
HeroSkin::addSkin($itemMeta);
|
HeroSkin::addSkin($itemMeta);
|
||||||
$propertyChgService->addHeroSkinChg();
|
$propertyChgService->addHeroSkinChg();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case mt\Item::GUN_TYPE: {
|
case mt\Item::GUN_TYPE: {
|
||||||
Gun::addGun($itemMeta);
|
Gun::addGun($itemMeta);
|
||||||
$propertyChgService->addGunChg();
|
$propertyChgService->addGunChg();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case mt\Item::GUN_SKIN_TYPE: {
|
case mt\Item::GUN_SKIN_TYPE: {
|
||||||
GunSkin::addSkin($itemMeta);
|
GunSkin::addSkin($itemMeta);
|
||||||
$propertyChgService->addGunSkinChg();
|
$propertyChgService->addGunSkinChg();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case mt\Item::CHIP_TYPE: {
|
case mt\Item::CHIP_TYPE: {
|
||||||
Chip::addChip($itemMeta);
|
Chip::addChip($itemMeta);
|
||||||
$propertyChgService->addChip();
|
$propertyChgService->addChip();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default: {
|
default: {
|
||||||
Bag::addItem($itemMeta['id'], $count);
|
Bag::addItem($itemMeta['id'], $count);
|
||||||
$propertyChgService->addBagChg();
|
$propertyChgService->addBagChg();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user