1.修改上传像素——手盟映射
This commit is contained in:
parent
414632b354
commit
96ca73d98a
156
core/config.py
156
core/config.py
@ -34,7 +34,9 @@ class GlobalConfig(BaseSettings):
|
||||
'mission_completed': 'task_flow',
|
||||
'enter_stage': 'dungeon_flow',
|
||||
'end_stage': 'dungeon_flow',
|
||||
'resource_change': 'item_flow',
|
||||
'resource_change': 'resource_flow',
|
||||
'get_item': 'item_flow',
|
||||
'cost_item': 'item_flow',
|
||||
'summon': 'recruit',
|
||||
'ask_for_join_guild': 'guild_apply',
|
||||
'leave_guild': 'guild_quit',
|
||||
@ -42,15 +44,34 @@ class GlobalConfig(BaseSettings):
|
||||
'get_hero': 'hero_get',
|
||||
'hero_up': 'hero_rank',
|
||||
'hero_star_up': 'hero_advanced',
|
||||
'hero_sudden':'hero_sudden',
|
||||
'hero_skill_get': 'hero_skill_get',
|
||||
'hero_equip': 'equip_get',
|
||||
'equip_level_up': 'hero_equip_rank',
|
||||
'rune_forge': 'rune_flow',
|
||||
'rune_strengthen':'rune_flow',
|
||||
'refine_rune':'rune_flow',
|
||||
'event_participate': 'activity_flow',
|
||||
'event_centered': 'activity_flow',
|
||||
'event_finish': 'activity_flow',
|
||||
'home_rank': 'home_rank',
|
||||
'fishing_flow': 'fishing_flow'}
|
||||
'fishing_flow': 'fishing_flow',
|
||||
'binfen_participate': 'activity_flow',
|
||||
'binfen_finish': 'activity_flow',
|
||||
'xitian_road_participate': 'activity_flow',
|
||||
'xitian_road_finish': 'activity_flow',
|
||||
'leiyin_participate': 'activity_flow',
|
||||
'leiyin_finish': 'activity_flow',
|
||||
'tyemple_soul': 'tyemple_soul',
|
||||
'hell_gate': 'hell_gate',
|
||||
'dzsf_participate': 'activity_flow',
|
||||
'dzsf_finish': 'activity_flow',
|
||||
'dzsftiaozhan_participate': 'dzsftiaozhan_participate',
|
||||
'dzsftiaozhan_finish': 'dzsftiaozhan_finish',
|
||||
'baoxiang':'activity_flow',
|
||||
'yuanxiao':'activity_flow',
|
||||
'yxxq_cunjie':'activity_flow',
|
||||
'drhz':'activity_flow'}
|
||||
# 公共属性映射 legu->shoumeng
|
||||
legu_to_sm_attr_base = {
|
||||
# 基础属性
|
||||
@ -75,7 +96,8 @@ class GlobalConfig(BaseSettings):
|
||||
legu_to_sm_attr = {'pay': {'unitPrice': 'pay_amount',
|
||||
'orderid': 'pay_product_id',
|
||||
'proid': 'pay_product',
|
||||
'pay_product_json': 'pay_product_json'},
|
||||
'pay_product_json': 'pay_product_json',
|
||||
'pay_ip': 'pay_ip'},
|
||||
'create_account': {},
|
||||
'login': {},
|
||||
'ta_app_end': {},
|
||||
@ -87,7 +109,7 @@ class GlobalConfig(BaseSettings):
|
||||
'before_level': 'rank_before',
|
||||
'after_level': 'rank_change'},
|
||||
'vip_level': {'before_vip': 'vip_rank_before',
|
||||
'after_vip': 'vip_rank_before'},
|
||||
'after_vip': 'vip_rank'},
|
||||
'fight': {'fighting_capacity': 'power',
|
||||
'fighting_before': 'power_before',
|
||||
'after_fighting': 'power_change'},
|
||||
@ -96,16 +118,31 @@ class GlobalConfig(BaseSettings):
|
||||
'mission_name': 'task_name',
|
||||
'reward_list': 'task_reward_content',
|
||||
'reward_type': 'task_result'},
|
||||
'enter_stage': {'stage_id': 'dungeon_id',
|
||||
'enter_stage': {},
|
||||
'end_stage': {'stage_id': 'dungeon_id',
|
||||
'stage_name': 'dungeon_name',
|
||||
'stage_type': 'dungeon_type'},
|
||||
'end_stage': {'reward_list': 'dungeon_result', 'chapter': 'chapter'},
|
||||
'stage_type': 'dungeon_type',
|
||||
'reward_list': 'dungeon_result'},
|
||||
'shopping': {},
|
||||
'idle_reward': {},
|
||||
'online_reward': {},
|
||||
'sign': {},
|
||||
'resource_change': {'resource_id': 'item_id',
|
||||
'resource_name': 'item_name',
|
||||
'resource_change': {'resource_id': 'resource_id',
|
||||
'resource_name': 'resource_name',
|
||||
'change_type': 'add_or_reduce',
|
||||
'change_num': 'count_change',
|
||||
'change_before': 'count_before',
|
||||
'change_after': 'count',
|
||||
'change_reason': 'sub_reason'},
|
||||
'get_item': {'item_id': 'item_id',
|
||||
'item_name': 'item_name',
|
||||
'change_type': 'add_or_reduce',
|
||||
'change_num': 'count_change',
|
||||
'change_before': 'count_before',
|
||||
'change_after': 'count',
|
||||
'change_reason': 'sub_reason'},
|
||||
'cost_item': {'item_id': 'item_id',
|
||||
'item_name': 'item_name',
|
||||
'change_type': 'item_type',
|
||||
'change_num': 'count_change',
|
||||
'change_before': 'count_before',
|
||||
@ -118,11 +155,15 @@ class GlobalConfig(BaseSettings):
|
||||
'summon_cost_num': 'cost_count'},
|
||||
'ask_for_join_guild': {'guild_level': 'guiild_rank',
|
||||
'guild_id': 'guild_id',
|
||||
'guild_name': 'guild_name',
|
||||
'guild_position': 'guild_position'},
|
||||
'leave_guild': {'guild_level': 'guiild_rank',
|
||||
'guild_id': 'guild_id',
|
||||
'guild_name': 'guild_name',
|
||||
'guild_position': 'guild_position'},
|
||||
'create_guild': {'guild_level': 'guiild_rank',
|
||||
'guild_id': 'guild_id',
|
||||
'guild_name': 'guild_name',
|
||||
'guild_fighting_capacity': 'guild_position'},
|
||||
'guild_donate': {},
|
||||
'get_hero': {'hero_name': 'hero_name',
|
||||
@ -130,37 +171,59 @@ class GlobalConfig(BaseSettings):
|
||||
'get_type': 'reason'},
|
||||
'hero_up': {'hero_name': 'hero_name',
|
||||
'hero_job': 'hero_type',
|
||||
'original_level': 'hero_rank_before',
|
||||
'new_level': 'hero_rank_before',
|
||||
'original_level': 'hero_status_before',
|
||||
'new_level': 'hero_rank',
|
||||
'item_name': 'item_name',
|
||||
'cost_count': 'cost_count'},
|
||||
'hero_star_up': {'hero_name': 'hero_name',
|
||||
'hero_job': 'hero_type',
|
||||
'before_awake': 'hero_rank_before',
|
||||
'after_awake': 'hero_rank_before',
|
||||
'hero_id': 'hero_id',
|
||||
'before_awake': 'hero_status_before',
|
||||
'after_awake': 'hero_status',
|
||||
'item_name': 'item_name',
|
||||
'cost_count': 'cost_count'},
|
||||
'hero_sudden': {'hero_name': 'hero_name',
|
||||
'hero_id': 'hero_id',
|
||||
'hero_status': 'hero_status',
|
||||
'hero_status_before': 'hero_status_before',
|
||||
'item_name': 'item_name',
|
||||
'cost_count': 'cost_count'},
|
||||
'hero_skill_get': {'hero_name': 'hero_name',
|
||||
'hero_job': 'hero_job',
|
||||
'skill_id': 'skill_id',
|
||||
'skill_rank_before': 'skill_rank_before',
|
||||
'skill_rank': 'skill_rank',
|
||||
'skill_name': 'skill_name'},
|
||||
'hero_equip': {'equip_id': 'equip_id',
|
||||
'after_fight': 'equip_name',
|
||||
'equip_quality': 'equip_quality'},
|
||||
'equip_quality': 'equip_quality',
|
||||
'reason': 'sub_reason'},
|
||||
'equip_level_up': {'equip_name': 'equip_name',
|
||||
'equip_quality': 'equip_id',
|
||||
'strength_level': 'equip_rank_before',
|
||||
'equip_rank': 'equip_rank'},
|
||||
'rune_forge': {'rune_id': 'rune_id',
|
||||
'rune_type': 'rune_type',
|
||||
'rune_name': 'rune_name'},
|
||||
'rune_name': 'rune_name',
|
||||
'reason': 'reason',
|
||||
'sub_reason': 'sub_reason'},
|
||||
'rune_strengthen': {'rune_id': 'rune_id',
|
||||
'rune_type': 'rune_type',
|
||||
'rune_name': 'rune_name',
|
||||
'item_name': 'item_name',
|
||||
'cost_count': 'cost_count',
|
||||
'rune_rank': 'rune_rank'},
|
||||
'event_participate': {'activity_id': 'activity_id',
|
||||
'activity_name': 'activity_name',
|
||||
'activity_type': 'activity_type'},
|
||||
'event_centered': {},
|
||||
'event_finish': {'mission_start_time': 'activity_reward_content'},
|
||||
'event_centered': {'activity_id': 'activity_id',
|
||||
'activity_name': 'activity_name',
|
||||
'activity_type': 'activity_type'},
|
||||
'event_finish': {'activity_id': 'activity_id',
|
||||
'activity_name': 'activity_name',
|
||||
'activity_type': 'activity_type',
|
||||
'reward_list': 'activity_reward_content'
|
||||
},
|
||||
'home_rank': {'home_rank_before': 'home_rank_before',
|
||||
'home_rank': 'home_rank_before'},
|
||||
'new_home_rank': 'home_rank'},
|
||||
'fishing_flow': {'fishing_result': 'result',
|
||||
'reward_content': 'reward_content',
|
||||
'fish_time_rest': 'fish_time_rest'},
|
||||
@ -175,8 +238,57 @@ class GlobalConfig(BaseSettings):
|
||||
'expend_strength': {},
|
||||
'decoration_recycle': {},
|
||||
'complete_build': {},
|
||||
'binfen_participate': {},
|
||||
'binfen_finish': {}}
|
||||
'binfen_participate': {'activity_id':'activity_id',
|
||||
'activity_name':'activity_name',
|
||||
'turntable_type': 'turntable_type',
|
||||
'cost_count': 'cost_count',
|
||||
'reward_list': 'activity_reward_content'},
|
||||
'binfen_finish': {'activity_id':'activity_id',
|
||||
'activity_name':'activity_name',
|
||||
'turntable_type': 'turntable_type',
|
||||
'cost_count': 'cost_count',
|
||||
'reward_list': 'activity_reward_content'},
|
||||
'xitian_road_participate': {'gaolaozhuang': 'gaolaozhuang'},
|
||||
'xitian_road_finish': {'huaguoshan': 'huaguoshan'},
|
||||
'leiyin_participate': {'activity_id':'activity_id',
|
||||
'activity_name':'activity_name',
|
||||
'turntable_type': 'turntable_type',
|
||||
'cost_count': 'cost_count',
|
||||
'reward_list': 'activity_reward_content'},
|
||||
'leiyin_finish': {'activity_id':'activity_id',
|
||||
'activity_name':'activity_name',
|
||||
'turntable_type': 'turntable_type',
|
||||
'cost_count': 'cost_count',
|
||||
'reward_list': 'activity_reward_content'},
|
||||
'tyemple_soul': {'zhanchang_name': 'zhanchang_name',
|
||||
'zhanchang_type': 'zhanchang_type',
|
||||
'reward_list': 'reward_list'},
|
||||
'hell_gate': {'stage_id': 'stage_id',
|
||||
'stage_name': 'stage_name',
|
||||
'reward_list': 'reward_list'},
|
||||
'dzsf_participate': {'activity_id':'activity_id',
|
||||
'activity_name':'activity_name',
|
||||
'turntable_type': 'turntable_type',
|
||||
'cost_count': 'cost_count',
|
||||
'reward_list': 'activity_reward_content'},
|
||||
'dzsf_finish': {'activity_id':'activity_id',
|
||||
'activity_name':'activity_name',
|
||||
'turntable_type': 'turntable_type',
|
||||
'cost_count': 'cost_count',
|
||||
'reward_list': 'activity_reward_content'},
|
||||
'dzsftiaozhan_participate': {'butianzhidi': 'butianzhidi'},
|
||||
'dzsftiaozhan_finish': {'jzzk': 'jzzk'},
|
||||
'baoxiang':{'activity_id':'activity_id',
|
||||
'activity_name':'activity_name',
|
||||
'reward_list':'activity_reward_content'},
|
||||
'yuanxiao':{'yuanxiao_finish':'activity_reward_content'},
|
||||
'yxxq_cunjie':{'activity_id':'activity_id',
|
||||
'activity_name':'activity_name',
|
||||
'reward_list':'activity_reward_content'},
|
||||
'drhz':{'activity_id':'activity_id',
|
||||
'activity_name':'activity_name',
|
||||
'reward_list':'activity_reward_content'}
|
||||
}
|
||||
# 手盟上报模板
|
||||
template_data = {
|
||||
"cp_game_id": 682,
|
||||
|
Loading…
Reference in New Issue
Block a user