This commit is contained in:
aozhiwei 2023-01-31 15:41:43 +08:00
parent c1643315bb
commit 7b1b322b3e

View File

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