%%---------------------------------------------------- %% 战力飞升0.1元礼包活动数据配置文件 %% @author wujinhan<947537249@qq.com> %%---------------------------------------------------- -module(holiday_dime_data). -export([cfg/0]). -include("data_config.hrl"). -include("common.hrl"). cfg() -> #data_cfg{ name = holiday_dime_data ,lua_name = holiday_dime_data ,desc = "战力飞升0.1元礼包活动配置数据" ,source = "holiday_dime_data.xml" ,target = "holiday_dime_data.erl" ,inc = ["common.hrl"] ,callback = [ {get_const, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~s) -> ~s; %% ~ts", [label,val,desc]}} ,{period_list, cb_fun, handle, {tuple_list, ["周期配置"], [period, start_time, end_time, open_cond]}} ,{get_charge_id, cb_fun, handle, {get_tuple, ["周期配置"], period, change_id}} ,{award_list, cb_fun, handle, {tuple_type, ["等级奖励"], period, [id, power_limit, award]}} ,{get_award, cb_fun, handle, {get_tuple, ["等级奖励"], [period, id], [power_limit, award]}} ,{get_icon, cb_fun, handle, {get_tuple, ["周期配置"], period, icon_id}} ] ,callback_cli = [ {constant, cb_fun_lua, handle, {key_val, ["常量配置"], [label], all}}, {period_list, cb_fun_lua, handle, {type_get_val, ["周期配置"], [period], [period,change_id,is_cheap]}}, {award_list, cb_fun_lua, handle, {type_get_val, ["等级奖励"], [period,id], all}} ] ,callback_json = [ {constant, cb_fun_json, handle, {key_val, ["常量配置"], [label], all}}, {period_list, cb_fun_json, handle, {type_get_val, ["周期配置"], [period], [period,change_id,is_cheap]}}, {award_list, cb_fun_json, handle, {type_get_val, ["等级奖励"], [period,id], all}} ] ,sheet = [ {["常量配置"],[ #f_column{type = term, name = label, desc = "常量标识", add_list_sign = false,mod = all} , #f_column{type = term, name = val, desc = "常量值", add_list_sign = false,mod = all} , #f_column{type = bstr, name = desc, desc = "描述", mod = all} ]} ,{["周期配置"], [ #f_column{type = int, name = period, desc = "周期", mod = all} ,#f_column{type = term, name = start_time, desc = "开启时间", add_list_sign = false, mod = all} ,#f_column{type = term, name = end_time, desc = "结束时间", add_list_sign = false, mod = all} ,#f_column{type = term, name = open_cond, desc = "开启条件", mod = all} ,#f_column{type = int, name = holiday_day, desc = "活动持续天数", mod = all} ,#f_column{type = int, name = change_id, desc = "充值ID", mod = all} ,#f_column{type = int, name = icon_id, desc = "图标ID", mod = all} ,#f_column{type = int, name = is_cheap, desc = "是否一毛购买", mod = client} ]} ,{["等级奖励"], [ #f_column{type = int, name = period, desc = "周期", mod = all} ,#f_column{type = int, name = id, desc = "奖励id", mod = all} ,#f_column{type = int, name = power_limit, val = "0", desc = "战力下限", mod = all} ,#f_column{type = term, name = award, desc = "奖励", mod = all} ,#f_column{type = int, name = is_show_effect, desc = "是否显示扫光特效", mod = client} ]} ] }.