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