互动
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.

157 lines
5.5 KiB

5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. package define
  2. const TimeFormat = "2006-01-01 15:04:05"
  3. const (
  4. MODULE_SIGNIN = "签到"
  5. MODULE_TUGWAR = "拔河"
  6. MODULE_SHAKRB = "摇红包"
  7. MODULE_SHAKETK = "摇奖券"
  8. MODULE_ORDER = "订单"
  9. MODULE_UPPERW = "上墙"
  10. MODULE_BULLYS = "霸屏"
  11. MODULE_LOTTERY = "抽奖"
  12. MODULE_VOTE = "投票"
  13. MODULE_AUCTION = "竞拍"
  14. MODULE_REWARD = "打赏"
  15. MODULE_SEMINAR = "会务"
  16. MODULE_MOREAREA = "多地区"
  17. MODULE_BARRAGE = "弹幕"
  18. MODULE_INVITATION = "邀请函"
  19. MODULE_ORDERLY = "订单抽奖"
  20. MODULE_MSGWALL = "消息墙"
  21. MODULE_CALORIE = "卡路里"
  22. )
  23. const (
  24. StatusNotBegin = "未开始"
  25. StatusReady = "准备中"
  26. StatusRunning = "进行中"
  27. StatusEnding = "已结束"
  28. StatusOpen = "开启"
  29. StatusClose = "关闭"
  30. )
  31. const (
  32. INCR_AUCTION = "加价竞拍"
  33. DECR_AUCTION = "减价竞拍"
  34. )
  35. const (
  36. TUGWAR_MODEL_RANDOM = "随机分配模式"
  37. TUGWAR_MODEL_SELECT = "大屏幕二维码模式"
  38. TUGWAR_TEAM_BULE = "blue"
  39. TUGWAR_TEAM_RED = "red"
  40. )
  41. const (
  42. SHAKERB_RULE_RANDOM = "拼手气红包"
  43. SHAKERB_RULE_COMMON = "普通红包"
  44. SHAKERB_RULE_LADDER = "阶梯红包"
  45. )
  46. // 模块去除 BesideRepeat
  47. const MODULE_BESIDE_REPEAT = "去除"
  48. const (
  49. TOKEN = "token"
  50. )
  51. const (
  52. WSSENDURL = "https://api.ouxuanhudong.com:20182/PcClient/Ws/MessageCtl/Receive"
  53. HOST = "https://api.ouxuanhudong.com"
  54. H5Host = "https://h5.ouxuanhudong.com/web"
  55. )
  56. const (
  57. H5Index = "index.html"
  58. H5SignIn = "SignIn.html"
  59. H5ShakeRb = "shakeRb.html"
  60. H5TugOfWar = "tugOfWar.html"
  61. H5UpperWall = "UpperWall.html"
  62. H5Barrage = "barrage.html"
  63. H5Order = "order.html"
  64. H5Reward = "reward.html"
  65. H5BScreen = "bScreen.html"
  66. H5Auction = "auction.html"
  67. H5Vote = "vote.html"
  68. H5Calorie = "calorie.html"
  69. )
  70. const (
  71. TYPE_H5USER = "h5user"
  72. TYPE_CUSTOMER = "customer"
  73. TYPE_ENTRYPEOPLE = "entry_people"
  74. )
  75. // 固定长度
  76. var DefaultOrderNo = 10000000000
  77. // 微信常量
  78. const (
  79. // 欧轩互动 -> 普通商户
  80. ApiKey = `2c82c64ceec6ba89ffc9f593c671a12f`
  81. WxAppId = `wx7b0bcf476552c5e9`
  82. Secret = `f6aabdd40ea25272f4442603a7dc8028`
  83. AppId = `wx7b0bcf476552c5e9`
  84. MchId = `1394404502`
  85. SubMchId = ``
  86. // 欧轩 -> 服务商
  87. //ApiKey = `6e281c8b5430c674034594cab789334F`
  88. //AppId = `wx662a1633304bfd42`
  89. //WxAppId = `wx662a1633304bfd42`
  90. //Secret = `7e4ecfe06ad1e075c210059d5b0162a3`
  91. //MchId = `1441266702`
  92. //SubMchId = `1394404502`
  93. //SubMchId = `1594049151`
  94. // 认证服务号:欧轩(用于申请微信服务商)
  95. // AppID:wx662a1633304bfd42
  96. // 密钥:7e4ecfe06ad1e075c210059d5b0162a3
  97. WxHost = `https://api.mch.weixin.qq.com`
  98. WxBack = `https://api2.mch.weixin.qq.com`
  99. ClientIp = `123.207.246.51`
  100. )
  101. const (
  102. CODE_SUCCESS = "SUCCESS" // 成功
  103. CODE_FAIL = "FAIL" // 失败
  104. CODE_NOTPAY = "NOTPAY" // 未支付
  105. CODE_CHANGE = "CHANGE" // 退款异常
  106. CODE_REFUNDCLOSE = "REFUNDCLOSE" // 退款关闭
  107. CODE_ERROR = "ERROR" // 业务错误
  108. CODE_INVALID_REQUEST = "INVALID_REQUEST" // 无效请求
  109. CODE_NOAUTH = "NOAUTH" // 异常IP请求不予受理
  110. CODE_NOTENOUGH = "NOTENOUGH" // 余额不足
  111. CODE_ORDERPAID = "ORDERPAID" // 订单已支付
  112. CODE_ORDERCLOSED = "ORDERCLOSED" // 订单已关闭
  113. CODE_SYSTEMERROR = "SYSTEMERROR" // 系统错误
  114. CODE_APPID_NOT_EXIST = "APPID_NOT_EXIST" // APPID不存在
  115. CODE_MCHID_NOT_EXIST = "MCHID_NOT_EXIST" // MCHID不存在
  116. CODE_APPID_MCHID_NOT_MATCH = "APPID_MCHID_NOT_MATCH" // APPID MCHID 不匹配
  117. CODE_LACK_PARAMS = "LACK_PARAMS" // 缺少参数
  118. CODE_OUT_TRADE_NO_USED = "OUT_TRADE_NO_USED" // 商户订单号重复
  119. CODE_SIGNERROR = "SIGNERROR" // 签名错误
  120. CODE_XML_FORMAT_ERROR = "XML_FORMAT_ERROR" // xml格式错误
  121. CODE_REQUIRE_POST_METHOD = "REQUIRE_POST_METHOD" // 请使用post请求方法
  122. CODE_POST_DATA_EMPTY = "POST_DATA_EMPTY" // post数据为空
  123. CODE_NOT_UTF8 = "NOT_UTF8" // 编码错误
  124. CODE_ORDERNOTEXIST = "ORDERNOTEXIST" // 交易订单号不存在
  125. CODE_BIZERR_NEED_RETRY = "BIZERR_NEED_RETRY" // 退款业务流程错误,需要商户触发重试来解决
  126. CODE_TRADE_OVERDUE = "TRADE_OVERDUE" // 订单已经超过退款期限
  127. CODE_USER_ACCOUNT_ABNORMAL = "USER_ACCOUNT_ABNORMAL" // 退款请求失败用户帐号注销
  128. CODE_INVALID_REQ_TOO_MUCH = "INVALID_REQ_TOO_MUCH" // 无效请求过多
  129. CODE_INVALID_TRANSACTIONID = "INVALID_TRANSACTIONID" // 无效transaction_id
  130. CODE_PARAM_ERROR = "PARAM_ERROR" // 参数错误
  131. CODE_FREQUENCY_LIMITED = "FREQUENCY_LIMITED" // 请求频率限制
  132. CODE_TRADE_SUCCESS = "SUCCESS" // 交易成功
  133. CODE_TRADE_REFUND = "REFUND" // 转入退款
  134. CODE_TRADE_NOTPAY = "NOTPAY" // 尚未支付
  135. CODE_TRADE_CLOSED = "CLOSED" // 已关闭
  136. CODE_TRADE_REVOKED = "REVOKED" // 已撤销
  137. CODE_TRADE_USERPAYING = "USERPAYING" // 用户支付中
  138. CODE_TRADE_PAYERROR = "PAYERROR" // 支付失败
  139. CODE_TRANSFER_PROCESSING = "PROCESSING" // 转账处理中
  140. CODE_TRANSFER_NOT_FOUND = "NOT_FOUND" // 账单不见了
  141. )