Files
2026-05-23 22:10:14 +08:00

470 lines
40 KiB
Erlang

%%----------------------------------------------------
%% 数据配置文件
%% @author liufenglin
%%----------------------------------------------------
-module(exchange_data).
-export([cfg/0
, get/1
]).
-include("data_config.hrl").
-include("common.hrl").
cfg() ->
#data_cfg{
name = exchange_data
,lua_name = exchange_data
,desc = "配置数据"
,source = "exchange_data.xml"
,target = "exchange_data.erl"
,inc = ["common.hrl","exchange.hrl"]
,callback = [
{list_by_type, cb_fun, handle,
{record_type, ["道具商城","主题商店", "圣羽-英雄商店", "圣羽-神装商店", "联盟商城", "竞技积分商城", "跨服天梯", "先知圣殿", "远征商店", "精英段位赛商店", "神装商店", "皮肤商城", "家具商店", "出行商店", "冠军商店", "巅峰商店", "圣夜奇境商店", "英魂商店" , "STEP-UP商店", "精英商店","限定商店","祈愿商店", "群星商店", "乱斗", "派对商店", "欢乐商店"],
type, exchange_data, all}
}
,{get_by_eid, cb_fun, handle,
{get_record, ["道具商城","主题商店", "圣羽-英雄商店", "圣羽-神装商店", "联盟商城", "竞技积分商城", "跨服天梯", "先知圣殿", "远征商店", "精英段位赛商店", "神装商店", "皮肤商城", "家具商店", "出行商店", "冠军商店", "巅峰商店", "圣夜奇境商店", "英魂商店", "STEP-UP商店", "精英商店","限定商店","祈愿商店", "群星商店", "乱斗", "派对商店", "欢乐商店"], id, exchange_data, all}
}
,{{get_cost_list, "undefined"}, cb_fun, handle, {get_tuple, ["商城类型"], id, cost_list}}
,{{get_exchange_name, "<<>>"}, cb_fun, handle, {get_tuple, ["商城类型"], id, name}}
,{get_limit_open, cb_fun, handle, {get_tuple, ["商城类型"], id, limit}}
,{get_const, cb_fun, handle, {get_fun, ["常量配置"], "get_const(~s) -> ~s; %% ~ts", [key,val,desc]}}
,{get_rand1, cb_fun, handle, {tuple_type, ["杂货店随机库1","英雄商城随机库1","探宝商城随机库1", "技能符石随机库1", "跨服竞技商店随机库1", "家具随机商店随机库1"], [pos, type_type], [type, pro, lv]}}
,{get_rand2, cb_fun, handle, {record_type, ["杂货店随机库2","英雄商城随机库2","探宝商城随机库2", "技能符石随机库2", "跨服竞技商店随机库2", "家具随机商店随机库2"], [type, type_type],exchange_ref, all}}
,{get_itemname, cb_fun, handle, {tuple_type, ["杂货店随机库2","英雄商城随机库2","探宝商城随机库2", "技能符石随机库2", "跨服竞技商店随机库2", "家具随机商店随机库2"], item_bid, item_name}}
,{first_rand, cb_fun, handle, {record_list, ["杂货店首次"], exchange_ref, all}}
]
,callback_cli = [
%% {shop_exchage_cost, cb_fun_lua, handle, {key_val, [ "常量配置"], [key], all}}
%% ,{shop_list, cb_fun_lua, handle, {key_val, ["商城类型"], [id], all}}
%% ,{shop_exchage_gold, cb_fun_lua, handle, {key_val, ["道具商城"], [order], all}}
%% ,{shop_exchage_theme, cb_fun_lua, handle, {key_val, ["主题商店"], [order], all}}
%% ,{shop_exchage_skin, cb_fun_lua, handle, {key_val, ["皮肤商城"], [order], all}}
%% ,{shop_exchage_guild, cb_fun_lua, handle, {key_val, ["联盟商城"], [order], all}}
%% ,{shop_exchage_arena, cb_fun_lua, handle, {key_val, ["竞技积分商城"], [order], all}}
%% ,{shop_exchage_boss,cb_fun_lua, handle, {type_get_val, ["BOSS积分商城"], [type,order], all}}
%% ,{shop_exchage_friend,cb_fun_lua, handle, {key_val, ["友情商店"], [order], all}}
%% ,{shop_exchage_boss_type,cb_fun_lua, handle, {list_val, ["BOSS积分商城"],[type],true,false}}
%% ,{shop_star,cb_fun_lua, handle, {type_val, ["星命商店"], [type], all}}
%% ,{shop_exchage_ladder,cb_fun_lua, handle, {type_get_val, ["跨服天梯"], [order], all}}
%% ,{shop_exchage_seer,cb_fun_lua, handle, {type_get_val, ["先知圣殿"], [order], all}}
%% ,{shop_exchage_expediton,cb_fun_lua, handle, {type_get_val, ["远征商店"], [order], all}}
%% ,{shop_exchage_elite,cb_fun_lua, handle, {type_get_val, ["精英段位赛商店"], [order], all}}
%% ,{shop_exchage_suit,cb_fun_lua, handle, {type_get_val, ["神装商店"], [tag,id], all}}
%% ,{shop_exchage_furniture,cb_fun_lua, handle, {key_val, ["家具商店"], [order], all}}
%% ,{shop_exchage_pet,cb_fun_lua, handle, {key_val, ["出行商店"], [order], all}}
%% ,{shop_exchage_crosschampion,cb_fun_lua, handle, {key_val, ["冠军商店"], [order], all}}
%% ,{shop_exchage_peakchampion,cb_fun_lua, handle, {key_val, ["巅峰商店"], [order], all}}
%% ,{shop_exchage_herosoul,cb_fun_lua, handle, {key_val, ["英魂商店"], [order], all}}
%% ,{shop_exchage_step_up,cb_fun_lua, handle, {key_val, ["STEP-UP商店"], [order], all}}
%% ,{shop_exchage_elite_recruit,cb_fun_lua, handle, {key_val, ["精英商店"], [order], all}}
%% ,{shop_exchage_hero,cb_fun_lua, handle, {key_val, ["圣羽-英雄商店"], [order], all}}
%% ,{shop_exchage_cloth,cb_fun_lua, handle, {key_val, ["圣羽-神装商店"], [order], all}}
]
,callback_json = [
{shop_exchage_cost, cb_fun_json, handle, {key_val, [ "常量配置"], [key], all}}
,{shop_list, cb_fun_json, handle, {key_val, ["商城类型"], [id], all}}
,{shop_exchage_gold, cb_fun_json, handle, {key_val, ["道具商城"], [order], all}}
,{shop_exchage_theme, cb_fun_json, handle, {key_val, ["主题商店"], [order], all}}
,{shop_exchage_skin, cb_fun_json, handle, {key_val, ["皮肤商城"], [order], all}}
,{shop_exchage_guild, cb_fun_json, handle, {key_val, ["联盟商城"], [order], all}}
,{shop_exchage_arena, cb_fun_json, handle, {key_val, ["竞技积分商城"], [order], all}}
,{shop_exchage_boss, cb_fun_json, handle, {type_get_val, ["BOSS积分商城"], [type,order], all}}
,{shop_exchage_friend,cb_fun_json, handle, {key_val, ["友情商店"], [order], all}}
,{shop_exchage_boss_type,cb_fun_json, handle, {list_val, ["BOSS积分商城"],[type],true,false}}
,{shop_star,cb_fun_json, handle, {type_val, ["星命商店"], [type], all}}
,{shop_exchage_ladder,cb_fun_json, handle, {type_get_val, ["跨服天梯"], [order], all}}
,{shop_exchage_seer,cb_fun_json, handle, {type_get_val, ["先知圣殿"], [order], all}}
,{shop_exchage_expediton,cb_fun_json, handle, {type_get_val, ["远征商店"], [order], all}}
,{shop_exchage_elite,cb_fun_json, handle, {type_get_val, ["精英段位赛商店"], [order], all}}
,{shop_exchage_suit,cb_fun_json, handle, {type_get_val, ["神装商店"], [tag,id], all}}
,{shop_exchage_furniture,cb_fun_json, handle, {key_val, ["家具商店"], [order], all}}
,{shop_exchage_pet,cb_fun_json, handle, {key_val, ["出行商店"], [order], all}}
,{shop_exchage_crosschampion,cb_fun_json, handle, {key_val, ["冠军商店"], [order], all}}
,{shop_exchage_peakchampion,cb_fun_json, handle, {key_val, ["巅峰商店"], [order], all}}
,{shop_exchage_herosoul,cb_fun_json, handle, {key_val, ["英魂商店"], [order], all}}
,{shop_exchage_step_up,cb_fun_json, handle, {key_val, ["STEP-UP商店"], [order], all}}
,{shop_exchage_limit,cb_fun_json, handle, {key_val, ["限定商店"], [order], all}}
,{shop_exchage_elite_recruit,cb_fun_json, handle, {key_val, ["精英商店"], [order], all}}
,{shop_exchage_hero,cb_fun_json, handle, {key_val, ["圣羽-英雄商店"], [order], all}}
,{shop_exchage_cloth,cb_fun_json, handle, {key_val, ["圣羽-神装商店"], [order], all}}
,{shop_exchage_camp_arena,cb_fun_json, handle, {key_val, ["乱斗"], [order], all}}
,{shop_exchage_prayer,cb_fun_json, handle, {key_val, ["祈愿商店"], [order], all}}
,{shop_exchage_star_card,cb_fun_json, handle, {key_val, ["群星商店"], [order], all}}
,{shop_exchage_sprite_party,cb_fun_json, handle, {key_val, ["派对商店"], [order], all}}
,{shop_exchage_happy,cb_fun_json, handle, {key_val, ["欢乐商店"], [order], all}}
],sheet = [
{["常量配置"], [
#f_column{type = atom, name = key, desc = "标签", primary = true, mod = all}
,#f_column{type = term, name = val, desc = "", add_list_sign=false,val_cli="0", mod = all}
,#f_column{type = bstr, name = desc, desc = "描述", mod = all}
]},
{["商城类型"], [
#f_column{type = int, name = id, desc = "类型ID", mod = all}
,#f_column{type = bstr, name = name, desc = "商城名字", mod = all}
,#f_column{type = term, name = subtype, desc = "子商城", mod = all}
,#f_column{type = term, name = cost_list, desc = "初始刷新消耗", mod = all}
,#f_column{type = int, name = item_bid, desc = "商城消耗资产ID", mod = client}
,#f_column{type = term, name = login_red, desc = "红点提示物品", mod = client}
,#f_column{type = term, name = limit, desc = "开启条件", val = "[]", mod = all}
,#f_column{type = int, name = sort, desc = "排序", mod = client}
,#f_column{type = int, name = score_sort, desc = "积分商城排序", mod = client}
,#f_column{type = bstr, name = end_time, desc = "结束时间", mod = client, val_cli = ""}
]},
{["皮肤商城"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品BID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = bind, kv_type = bool, desc = "是否绑定", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = limit_vip, desc = "VIP限制", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
,#f_column{type = term, name = lev, desc = "等级限制", add_list_sign = false,val_cli="{0,0}", mod = all}
,#f_column{type = int, name = is_partner, desc = "是否伙伴", mod = all}
,#f_column{type = int, name = icon, desc = "物品图标ID", mod = client}
,#f_column{type = int, name = label, desc = "折扣标签", mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", mod = all}
,#f_column{type = int, name = open_srv_timestamp, desc = "开服时间戳", mod = all}
]},
{["道具商城", "竞技积分商城", "远征商店"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品BID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = bind, kv_type = bool, desc = "是否绑定", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = limit_vip, desc = "VIP限制", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
,#f_column{type = int, name = has_buy, desc = "是否已经购买", mod = client}
,#f_column{type = term, name = lev, desc = "等级限制", add_list_sign = false,val_cli="{0,0}", mod = all}
,#f_column{type = int, name = is_partner, desc = "是否伙伴", mod = all}
,#f_column{type = int, name = icon, desc = "物品图标ID", mod = client}
,#f_column{type = int, name = label, desc = "折扣标签", mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", mod = all}
,#f_column{type = int, name = open_srv_timestamp, desc = "开服时间戳", mod = all}
]},
{["联盟商城"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品BID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = bind, kv_type = bool, desc = "是否绑定", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
,#f_column{type = term, name = lev, desc = "等级限制", add_list_sign = false,val_cli="{0,0}", mod = all}
,#f_column{type = term, name = glev, desc = "联盟等级限制", add_list_sign = false,val_cli="0", mod = all}
,#f_column{type = int, name = is_partner, desc = "是否伙伴", mod = all}
,#f_column{type = int, name = icon, desc = "物品图标ID", mod = client}
,#f_column{type = int, name = label, desc = "折扣标签", mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", mod = all}
,#f_column{type = term, name = role_lev, desc = "展示等级", mod = client}
,#f_column{type = int, name = arena_elite_lev, desc = "段位赛等级限制", add_list_sign = false, val_cli="0", mod = all}
]},
{["精英段位赛商店"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品BID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = bind, kv_type = bool, desc = "是否绑定", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
,#f_column{type = int, name = has_buy, desc = "是否已经购买", mod = client}
,#f_column{type = term, name = lev, desc = "等级限制", add_list_sign = false,val_cli="{0,0}", mod = all}
,#f_column{type = term, name = glev, desc = "联盟等级限制", add_list_sign = false,val_cli="0", mod = all}
,#f_column{type = int, name = is_partner, desc = "是否伙伴", mod = all}
,#f_column{type = int, name = icon, desc = "物品图标ID", mod = client}
,#f_column{type = int, name = label, desc = "折扣标签", mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", mod = all}
,#f_column{type = term, name = role_lev, desc = "展示等级", mod = client}
,#f_column{type = int, name = arena_elite_lev, desc = "段位赛等级限制", add_list_sign = false, val_cli="0", mod = all}
]},
{["家具商店"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品ID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "商品名", mod = all}
,#f_column{type = kv, name = item_type, desc = "物品类型", kv_type = [{"墙壁", 1}, {"地板", 2}, {"墙饰", 3}, {"家具", 4}, {"地毯", 5}], mod = client}
,#f_column{type = bstr, name = item_desc, desc = "物品效果描述", mod = client}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
]},
{["出行商店"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品ID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "商品名", mod = all}
,#f_column{type = kv, name = item_type, desc = "物品类型", kv_type = [{"食物", 1}, {"道具", 2}], mod = client}
,#f_column{type = bstr, name = item_desc, desc = "物品效果描述", mod = client}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = limit_soft, desc = "解锁所需舒适度", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
]},
{["跨服天梯", "冠军商店", "巅峰商店", "英魂商店", "STEP-UP商店", "精英商店","限定商店","祈愿商店","主题商店","乱斗", "群星商店", "派对商店"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品BID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = bind, kv_type = bool, desc = "是否绑定", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
,#f_column{type = term, name = lev, desc = "等级限制", add_list_sign = false,val_cli="{0,0}", mod = all}
,#f_column{type = int, name = is_partner, desc = "是否伙伴", mod = all}
,#f_column{type = int, name = icon, desc = "物品图标ID", mod = client}
,#f_column{type = int, name = label, desc = "折扣标签", mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", mod = all}
,#f_column{type = int, name = limit_count, desc = "角色永久限购", mod = all}
,#f_column{type = int, name = limit_rank, desc = "排名限制", mod = all}
,#f_column{type = term, name = role_lev, desc = "展示等级", mod = client}
]},
{["欢乐商店"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品BID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = bind, kv_type = bool, desc = "是否绑定", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
,#f_column{type = term, name = lev, desc = "等级限制", add_list_sign = false,val_cli="{0,0}", mod = all}
,#f_column{type = int, name = is_partner, desc = "是否伙伴", mod = all}
,#f_column{type = int, name = icon, desc = "物品图标ID", mod = client}
,#f_column{type = int, name = label, desc = "折扣标签", mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", mod = all}
,#f_column{type = int, name = limit_count, desc = "角色永久限购", mod = all}
,#f_column{type = int, name = limit_rank, desc = "排名限制", mod = all}
,#f_column{type = term, name = role_lev, desc = "展示等级", mod = client}
,#f_column{type = term, name = start_time, desc = "开始时间", mod = client}
,#f_column{type = term, name = end_time, desc = "关闭时间", mod = client}
]},
{["先知圣殿"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品BID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = bind, kv_type = bool, desc = "是否绑定", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
,#f_column{type = term, name = lev, desc = "等级限制", add_list_sign = false,val_cli="{0,0}", mod = all}
,#f_column{type = int, name = is_partner, desc = "是否伙伴", mod = all}
,#f_column{type = int, name = icon, desc = "物品图标ID", mod = client}
,#f_column{type = int, name = label, desc = "折扣标签", mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", mod = all}
,#f_column{type = int, name = limit_count, desc = "角色永久限购", mod = all}
,#f_column{type = int, name = limit_rank, desc = "排名限制", mod = all}
,#f_column{type = int, name = camp, desc = "阵营", mod = client}
]},
{["杂货店首次"], [
#f_column{type = int, name = order, desc = "位置", mod = all}
,#f_column{type = int, name = item_bid, desc = "物品id", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = int, name = item_num, desc = "物品数量", mod = all}
,#f_column{type = int, name = pro, desc = "概率", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = kv, name = item_type, kv_type = exchange_item_type, desc = "物品类型", mod = all}
,#f_column{type = int, name = label, desc = "折扣标签", val =0, mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", val = 0, mod = all}
,#f_column{type = int, name = limit_count, desc = "本次限购", mod = all}
]},
{["杂货店随机库1", "英雄商城随机库1", "探宝商城随机库1", "技能符石随机库1", "跨服竞技商店随机库1", "家具随机商店随机库1"], [
#f_column{type = int, name = type_type, desc = "商城类型", mod = all}
,#f_column{type = term, name = lv, desc = "等级", add_list_sign = false, mod = all}
,#f_column{type = atom, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = pos, desc = "位置", mod = all}
,#f_column{type = int, name = pro, desc = "概率", mod = all}
]},
{["杂货店随机库2", "英雄商城随机库2", "探宝商城随机库2", "技能符石随机库2"], [
#f_column{type = int, name = type_type, desc = "商城类型", mod = all}
,#f_column{type = term, name = lev, desc = "等级", add_list_sign = false, mod = all}
,#f_column{type = atom, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = item_bid, desc = "物品id", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = int, name = item_num, desc = "物品数量", mod = all}
,#f_column{type = int, name = pro, desc = "概率", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = kv, name = item_type, kv_type = exchange_item_type, desc = "物品类型", mod = all}
,#f_column{type = int, name = label, desc = "折扣标签", val =0, mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", val = 0, mod = all}
,#f_column{type = int, name = limit_count, desc = "本次限购", mod = all}
,#f_column{type = term, name = assets_range, desc = "资产范围", add_list_sign = false, mod = server}
,#f_column{type = term, name = pay_type2, desc = "支付类型2", add_list_sign = false, mod = server}
,#f_column{type = kv, name = flag, kv_type = {?MODULE, get, [flag]}, desc = "是否默认产出", val = "1", mod = server}
]},
{["家具随机商店随机库2"], [
#f_column{type = int, name = type_type, desc = "商城类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = term, name = lev, desc = "等级", add_list_sign = false, mod = all}
,#f_column{type = atom, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = item_bid, desc = "物品id", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = bstr, name = item_desc, desc = "物品效果描述", mod = all}
,#f_column{type = int, name = item_num, desc = "物品数量", mod = all}
,#f_column{type = int, name = pro, desc = "概率", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = kv, name = item_type, kv_type = exchange_item_type, desc = "物品类型", mod = all}
,#f_column{type = int, name = label, desc = "折扣标签", val =0, mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", val = 0, mod = all}
,#f_column{type = int, name = limit_count, desc = "本次限购", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
,#f_column{type = term, name = assets_range, desc = "资产范围", add_list_sign = false, mod = server}
,#f_column{type = term, name = pay_type2, desc = "支付类型2", add_list_sign = false, mod = server}
]},
{["跨服竞技商店随机库2"], [
#f_column{type = int, name = type_type, desc = "商城类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = term, name = lev, desc = "等级", add_list_sign = false, mod = all}
,#f_column{type = atom, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = item_bid, desc = "物品id", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = int, name = item_num, desc = "物品数量", mod = all}
,#f_column{type = int, name = pro, desc = "概率", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = kv, name = item_type, kv_type = exchange_item_type, desc = "物品类型", mod = all}
,#f_column{type = int, name = label, desc = "折扣标签", val =0, mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", val = 0, mod = all}
,#f_column{type = int, name = limit_count, desc = "本次限购", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
,#f_column{type = term, name = assets_range, desc = "资产范围", add_list_sign = false, mod = server}
,#f_column{type = term, name = pay_type2, desc = "支付类型2", add_list_sign = false, mod = server}
,#f_column{type = kv, name = flag, kv_type = {?MODULE, get, [flag]}, desc = "是否默认产出", val = "1", mod = server}
]},
{["神装商店"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品BID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "物品名", mod = all}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = bind, kv_type = bool, desc = "是否绑定", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = limit_count, desc = "本次限购", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
,#f_column{type = term, name = lev, desc = "等级限制", add_list_sign = false,val_cli="{0,0}", mod = all}
,#f_column{type = int, name = is_partner, desc = "是否伙伴", mod = all}
,#f_column{type = int, name = icon, desc = "物品图标ID", mod = client}
,#f_column{type = int, name = show_star, desc = "展示用星级", mod = client}
,#f_column{type = int, name = buy_condit, desc = "购买所需战力前5英雄神装总评分", mod = all}
,#f_column{type = int, name = show_condit, desc = "显示所需战力前5英雄神装总评分", mod = client}
,#f_column{type = bstr, name = pass_name, desc = "显示条件描述", mod = client}
,#f_column{type = int, name = label, desc = "折扣标签", mod = all}
,#f_column{type = int, name = discount, desc = "折扣价格", mod = all}
,#f_column{type = int, name = tag, desc = "分标签", mod = client}
,#f_column{type = int, name = star, desc = "星数显示", mod = client}
]},
{["圣羽-英雄商店"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品ID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "商品名", mod = all}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
]},
{["圣羽-神装商店"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品ID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "商品名", mod = all}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = buy_condit, desc = "购买所需战力前5英雄神装总评分条件", mod = all}
,#f_column{type = bstr, name = pass_name, desc = "显示条件描述", mod = client}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
]},
{["圣夜奇境商店"], [
#f_column{type = int, name = type, desc = "类型", mod = all}
,#f_column{type = int, name = id, desc = "ID", mod = all}
,#f_column{type = int, name = order, desc = "序号", mod = client}
,#f_column{type = int, name = item_bid, desc = "物品ID", mod = all}
,#f_column{type = bstr, name = item_name, desc = "商品名", mod = all}
,#f_column{type = int, name = item_num, desc = "数量", mod = all}
,#f_column{type = kv, name = pay_type, kv_type = gain_label, desc = "支付类型", mod = all}
,#f_column{type = int, name = price, desc = "价格", mod = all}
,#f_column{type = int, name = buy_stage, desc = "购买所需阶段通关条件", mod = all}
,#f_column{type = bstr, name = pass_name, desc = "显示条件描述", mod = client}
,#f_column{type = int, name = limit_day, desc = "每日购买数量", mod = all}
,#f_column{type = int, name = limit_week, desc = "每周购买数量", mod = all}
,#f_column{type = int, name = limit_month, desc = "每月购买数量", mod = all}
,#f_column{type = int, name = limit_count, desc = "活动购买数量", mod = all}
]}
]
}.
get(goods_type) ->
[
{"默认类型", 0}
, {"特惠礼包", 1}
];
get(flag) ->
[
{"", 1}
, {"", 0}
];
get(_) -> [].