订单分佣规则
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.

provider.go 5.0 KiB

10 maanden geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. package md
  2. const (
  3. PVD_TB = "taobao"
  4. PVD_JD = "jd"
  5. PVD_JDOwn = "jd_own"
  6. PVD_SN = "suning"
  7. PVD_VIP = "vip"
  8. PVD_PDD = "pdd"
  9. PVD_KL = "kaola"
  10. PVD_TM = "tmall"
  11. PVD_DTK = "dataoke"
  12. PVD_HDK = "haodanku"
  13. PVD_JTT = "jingtuitui"
  14. // 特殊活动免单方案
  15. PVD_FREE = "free"
  16. PVD_MEITUAN = "meituan"
  17. PVD_OILSTATION = "oil"
  18. PVD_KFC = "kfc"
  19. PVD_CINEMA = "cinema"
  20. PVD_NEW_CINEMA = "new_cinema" //新电影票
  21. PVD_CREDIT_CARD = "credit_card"
  22. PVD_CARD_REFUND = "card_refund" //权益卡退款
  23. PVD_CARD = "privilege_card" //权益卡
  24. PVD_USER_LV_UP = "userlvup" //会员费用
  25. PVD_OPEN_CARD = "privilege_open_card" // 权益卡开卡
  26. PVD_DUOMAI = "duomai" // 多麦
  27. PVD_MALL_GOODS = "mall_goods" // 自营商品订单返佣
  28. PVD_MALL_GOODS_USER_LV = "mall_goods_user_lv" // 自营商品升级礼包订单返佣
  29. PVD_GROUP_BUY = "mall_group_buy" // 拼团未中奖返佣
  30. PVD_REGIONAL_AGENT_PAY = "regional_agent_pay" // 区域代理升级付款
  31. PVD_GUIDE = "GUIDE" //导购
  32. PVD_SELF_MALL = "SELF_MALL" //自营
  33. PVD_O2O = "O2O" //O2O
  34. PVD_COMMON = "COMMON" //区域代理通用网点
  35. PVD_ORDINARY = "ordinary" //通用
  36. )
  37. var PVD_LIST = map[string]string{
  38. PVD_TB: "淘宝",
  39. PVD_JD: "京东",
  40. PVD_SN: "苏宁",
  41. PVD_VIP: "唯品会",
  42. PVD_PDD: "拼多多",
  43. PVD_KL: "考拉",
  44. PVD_CREDIT_CARD: "信用卡",
  45. PVD_TM: "天猫",
  46. PVD_USER_LV_UP: "会员升级",
  47. PVD_CARD_REFUND: "权益卡退款",
  48. PVD_CARD: "权益卡",
  49. PVD_MEITUAN: "美团",
  50. PVD_OILSTATION: "加油",
  51. PVD_KFC: "肯德基",
  52. PVD_CINEMA: "电影票",
  53. "ele": "饿了么",
  54. "user_lv_up": "会员升级",
  55. PVD_REGIONAL_AGENT_PAY: "区域代理升级",
  56. PVD_GUIDE: "导购", //导购
  57. PVD_SELF_MALL: "自营", //自营
  58. PVD_O2O: "O2O", //O2O
  59. PVD_COMMON: "区域代理通用网点",
  60. PVD_ORDINARY: "通用", //通用
  61. "CARD": "权益卡",
  62. "OIL": "加油",
  63. }
  64. var PVD_LIST_ICON = map[string]string{
  65. PVD_TB: "provider-square-icon-taobao.png",
  66. PVD_JD: "provider-square-icon-jd.png",
  67. PVD_SN: "provider-square-icon-suning.png",
  68. PVD_VIP: "provider-square-icon-vip.png",
  69. PVD_PDD: "provider-square-icon-pdd.png",
  70. PVD_KL: "provider-square-icon-kaola.png",
  71. }
  72. var ZHIMENG_CFG_LIST = []string{KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_WEB_ID}
  73. var PVD_CFG_LIST = map[string][]string{
  74. PVD_TB: {
  75. "third_taobao_sid",
  76. "third_taobao_web_ak",
  77. "third_taobao_web_sk",
  78. "third_taobao_svc_ak",
  79. "third_taobao_svc_sk",
  80. "third_taobao_svc_sid",
  81. // 推广位
  82. "third_taobao_share_inviter_code",
  83. "third_taobao_share_pid_android",
  84. "third_taobao_share_pid_ios",
  85. "third_taobao_share_pid_web",
  86. // 推广位
  87. "third_taobao_self_inviter_code",
  88. "third_taobao_self_pid_android",
  89. "third_taobao_self_pid_ios",
  90. "third_taobao_self_pid_web",
  91. },
  92. PVD_JD: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_JD_SITE_ID, KEY_CFG_ZM_WEB_ID},
  93. PVD_VIP: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_JD_SITE_ID, KEY_CFG_ZM_WEB_ID},
  94. PVD_PDD: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_JD_SITE_ID, KEY_CFG_ZM_WEB_ID},
  95. PVD_SN: {KEY_CFG_SN_AK, KEY_CFG_SN_SK},
  96. PVD_KL: {KEY_CFG_KL_AK, KEY_CFG_KL_SK},
  97. PVD_MEITUAN: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  98. PVD_OILSTATION: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  99. PVD_KFC: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  100. PVD_CINEMA: {KEY_CFG_ZM_AK, KEY_CFG_ZM_SK, KEY_CFG_ZM_SMS_AK, KEY_CFG_ZM_SMS_SK, KEY_CFG_ZM_WEB_ID},
  101. }
  102. var COIN_TRANSFER_TYPE = map[int]string{
  103. 1: "全球分红",
  104. 2: "管理员修改",
  105. 3: "消费",
  106. 4: "退回",
  107. 5: "虚拟币兑换",
  108. 6: "余额充值",
  109. }
  110. var COMM_TASK_TYPE_NAME = map[int]string{
  111. 1: "邀请好友",
  112. 2: "分享商品",
  113. 3: "观看视频广告",
  114. 4: "购买商品",
  115. 5: "淘宝授权",
  116. 6: "微信绑定",
  117. 7: "成为XX等级会员",
  118. 8: "填写邀请码",
  119. 9: "绑定手机号",
  120. }
  121. var COMM_TASK_TYPE_ONE = []string{
  122. "5", "6", "7", "8", "9",
  123. }
  124. var COMM_TASK_TYPE_MORE = []string{
  125. "1", "2", "3", "4",
  126. }
  127. var VIRTUAL_COIN_FUNCTION_TYPE = map[string]string{
  128. "block": "block",
  129. "capital_pool": "capital_pool",
  130. "super_group": "super_group",
  131. }
  132. var VIRTUAL_COIN_FUNCTION_TYPE_NAME = map[string]string{
  133. "block": "区块币",
  134. "capital_pool": "全球分红",
  135. "super_group": "超级拼团",
  136. }