源战役
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 line
908 B

  1. %%%--------------------------------------
  2. %%% @Module : vip_bag_onsale.hrl
  3. %%% @Author : ckx
  4. %%% @Created : 2019-06-17
  5. %%% @Description: VIP特惠活动
  6. %%%--------------------------------------
  7. -record(vip_bag_onsale, {
  8. onsale_state = #{} %% 活动开启期间的玩家礼包领取情况 {Type, SubType} => [{Grade, Price, Percent}, ...]
  9. }).
  10. %% 礼包状态
  11. -define(NOT_SHOW, 0). %% 不显示
  12. -define(ONLY_SHOW, 1). %% 仅显示
  13. -define(CAN_BUY, 2). %% 可购买
  14. -define(sql_vip_bag_onsale_select,
  15. <<"select act_type, sub_type, grade, price, percent from custom_act_vip_bag_onsale where role_id = ~p">>).
  16. -define(sql_vip_bag_onsale_replace,
  17. <<"replace into custom_act_vip_bag_onsale(role_id, act_type, sub_type, grade, price, percent) values(~p, ~p, ~p, ~p, ~p, ~p)">>).
  18. -define(sql_vip_bag_onsale_delete,
  19. <<"delete from custom_act_vip_bag_onsale where act_type = ~p and sub_type = ~p">>).