This commit is contained in:
aozhiwei 2022-10-17 20:09:50 +08:00
parent d6a6779756
commit d1c614b88f

View File

@ -42,6 +42,7 @@ class UserController extends BaseAuthedController {
$this->createNewUser($userName, $avatarUrl);
$this->addChip();
$this->addFragmentBox();
$userInfo = $this->_getOrmUserInfo();
}
@ -53,6 +54,28 @@ class UserController extends BaseAuthedController {
));
$this->_incDailyV(TN_DAILY_LOGINS, 0, 1);
}
private function addFragmentBox(){
$items = array(
array(
'item_id' => V_ITEM_GOLD,
'item_num' => 10000
),array(
'item_id' => V_ITEM_DIAMOND,
'item_num' => 10000
),
);
$boxMeta=\mt\Item::getMetaListByType(15);
foreach ($boxMeta as $box){
array_push($items,array(
'item_id' => $box['id'],
'item_num' => 10
));
}
$awardService = new services\AwardService();
$propertyChgService = new services\PropertyChgService();
$this->_addItems($items,$awardService,$propertyChgService);
}
private function addChip(){
$list1 = [130001,130002,130003,130004,130005,130006,130007,130008,130009,130010];