源战役
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

80 řádky
1.6 KiB

před 4 týdny
  1. %%-----------------------------------------------------------------------------
  2. %% @Module : cloud_buy.hrl
  3. %% @Author : J
  4. %% @Email : j-som@foxmail.com
  5. %% @Created : 2017-09-21
  6. %% @Description: 众仙云购
  7. %%-----------------------------------------------------------------------------
  8. -record(cloud_buy_kf_mgr_state, {
  9. subtype_list = [],
  10. check_timer = 0
  11. }).
  12. -record(subtype_info, {
  13. subtype = 0,
  14. sub_pid = 0
  15. }).
  16. -record(cloud_buy_kf_state, {
  17. custom_act_type = 0,
  18. custom_act_subtype = 0,
  19. start_time = 0,
  20. end_time = 0,
  21. award_time = 0,
  22. unlimited_time = 0,
  23. done_orders = [],
  24. unfinished_orders = [],
  25. big_award_id = 0,
  26. award_open_ref = [],
  27. unlimited_ref = [],
  28. clear_unfinished_ref = [],
  29. last_lucky_orders = [],
  30. last_big_award_id = 0,
  31. cur_count = 0
  32. }).
  33. -record (cloud_order, {
  34. order_id = 0,
  35. big_award_id = 0,
  36. customer_uid = "",
  37. customer_name = "",
  38. platform = "",
  39. server = 0,
  40. state = 0,
  41. count = 1,
  42. time = 0,
  43. career = 0
  44. }).
  45. -record (cloud_award_config, {
  46. id,
  47. reward_type,
  48. rewards,
  49. resouce_id,
  50. total_count,
  51. cost,
  52. award_count,
  53. happy_awards
  54. }).
  55. -record (cloud_buy_reward_con, {
  56. reward_id,
  57. reward_type,
  58. reward_list
  59. }).
  60. -record (cloud_buy_status, {
  61. subtype = 0,
  62. big_award_id = 0,
  63. award_time = 0,
  64. cur_order,
  65. req_times
  66. }).
  67. -define (ORDER_STATE_NONE, 0).
  68. -define (ORDER_STATE_PAID, 1). %% 已付款
  69. -define (ORDER_STATE_AWARD, 2).
  70. -define (ORDER_STATE_LOSE, 3).
  71. -define (ORDER_STATE_FAIL, 4). %% 订单失败