1
This commit is contained in:
parent
c8a01d8cd3
commit
8593a75139
@ -125,24 +125,24 @@ class UserController extends BaseAuthedController {
|
||||
}
|
||||
|
||||
private function _addFreeItem(){
|
||||
// foreach (mt\Parameter::getListValue('creator_hero_id') as $heroId) {
|
||||
// $heroMeta = mt\Item::get($heroId);
|
||||
// if ($heroMeta) {
|
||||
// Hero::addHero($heroMeta);
|
||||
// User::upsertHeadList($heroMeta);
|
||||
// }
|
||||
// }
|
||||
// $addItems =array();
|
||||
// foreach (mt\Parameter::getListValue('creator_present_items') as $itemsStr) {
|
||||
// list($itemId, $itemNum) = explode(':', $itemsStr);
|
||||
// if ($itemNum > 0) {
|
||||
// array_push($addItems,
|
||||
// array(
|
||||
// 'item_id' => $itemId,
|
||||
// 'item_num' => $itemNum
|
||||
// ));
|
||||
// }
|
||||
// }
|
||||
foreach (mt\Parameter::getListValue('creator_hero_id') as $heroId) {
|
||||
$heroMeta = mt\Item::get($heroId);
|
||||
if ($heroMeta) {
|
||||
Hero::addHero($heroMeta);
|
||||
User::upsertHeadList($heroMeta);
|
||||
}
|
||||
}
|
||||
$addItems =array();
|
||||
foreach (mt\Parameter::getListValue('creator_present_items') as $itemsStr) {
|
||||
list($itemId, $itemNum) = explode(':', $itemsStr);
|
||||
if ($itemNum > 0) {
|
||||
array_push($addItems,
|
||||
array(
|
||||
'item_id' => $itemId,
|
||||
'item_num' => $itemNum
|
||||
));
|
||||
}
|
||||
}
|
||||
$items = array(
|
||||
array(
|
||||
'item_id' => V_ITEM_GOLD,
|
||||
|
Loading…
x
Reference in New Issue
Block a user