This commit is contained in:
aozhiwei 2022-09-15 16:20:47 +08:00
parent dfc01f6988
commit d0e6824f9b
2 changed files with 9 additions and 3 deletions

View File

@ -30,6 +30,7 @@ class Battle(object):
_common.ReqHead(), _common.ReqHead(),
['battle_uniid', '', 'battle_uuid'], ['battle_uniid', '', 'battle_uuid'],
['match_mode', 0, '0: 匹配赛模式 1: 排位赛 3: pve'], ['match_mode', 0, '0: 匹配赛模式 1: 排位赛 3: pve'],
['pve_instance_id', 0, 'pve副本id'],
['is_valid_battle', 0, 'is_valid_battle'], ['is_valid_battle', 0, 'is_valid_battle'],
['payload', '', 'payload'], ['payload', '', 'payload'],
['map_id', 0, '地图id'], ['map_id', 0, '地图id'],
@ -64,6 +65,9 @@ class Battle(object):
['weapons_slot', '', '武器信息 weapon_id:use_times|'], ['weapons_slot', '', '武器信息 weapon_id:use_times|'],
['heros', '', '武器信息 hero_id:skill_lv:weapon_lv|'], ['heros', '', '武器信息 hero_id:skill_lv:weapon_lv|'],
['pve_rank_score', 0, 'pve积分'],
['pve_kill_boss', 0, 'pve boss是否被击杀'],
['rank_score', 0, '排位积分'], ['rank_score', 0, '排位积分'],
#['pass_score', 0, '通行证积分'], #['pass_score', 0, '通行证积分'],
['items', 0, '道具id:道具数量|'], ['items', 0, '道具id:道具数量|'],

View File

@ -252,10 +252,12 @@ class BagController extends BaseAuthedController {
return; return;
} }
$items = array( $items = array(
'item_id' => itemId, array(
'item_id' => $itemId,
'item_num' => 1 'item_num' => 1
)
); );
$this->_addItems($items, $this->awardService, $this->propertyService); $this->_addItems($items, $this->awardService, $this->propertyChgService);
$this->propertyChgService->addBagChg(); $this->propertyChgService->addBagChg();
$this->_rspData(array( $this->_rspData(array(
'award' => $this->awardService->toDto(), 'award' => $this->awardService->toDto(),