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

32 lines
2.4 KiB

5 years ago
  1. package wx
  2. const CODE_SUCCESS = "SUCCESS" // 成功
  3. const CODE_FAIL = "FAIL" // 失败
  4. const CODE_NOTPAY = "NOTPAY" // 未支付
  5. const CODE_CHANGE = "CHANGE" // 退款异常
  6. const CODE_REFUNDCLOSE = "REFUNDCLOSE" // 退款关闭
  7. const CODE_ERROR = "ERROR" // 业务错误
  8. const CODE_INVALID_REQUEST = "INVALID_REQUEST" // 无效请求
  9. const CODE_NOAUTH = "NOAUTH" // 异常IP请求不予受理
  10. const CODE_NOTENOUGH = "NOTENOUGH" // 余额不足
  11. const CODE_ORDERPAID = "ORDERPAID" // 订单已支付
  12. const CODE_ORDERCLOSED = "ORDERCLOSED" // 订单已关闭
  13. const CODE_SYSTEMERROR = "SYSTEMERROR" // 系统错误
  14. const CODE_APPID_NOT_EXIST = "APPID_NOT_EXIST" // APPID不存在
  15. const CODE_MCHID_NOT_EXIST = "MCHID_NOT_EXIST" // MCHID不存在
  16. const CODE_APPID_MCHID_NOT_MATCH = "APPID_MCHID_NOT_MATCH" // APPID MCHID 不匹配
  17. const CODE_LACK_PARAMS = "LACK_PARAMS" // 缺少参数
  18. const CODE_OUT_TRADE_NO_USED = "OUT_TRADE_NO_USED" // 商户订单号重复
  19. const CODE_SIGNERROR = "SIGNERROR" // 签名错误
  20. const CODE_XML_FORMAT_ERROR = "XML_FORMAT_ERROR" // xml格式错误
  21. const CODE_REQUIRE_POST_METHOD = "REQUIRE_POST_METHOD" // 请使用post请求方法
  22. const CODE_POST_DATA_EMPTY = "POST_DATA_EMPTY" // post数据为空
  23. const CODE_NOT_UTF8 = "NOT_UTF8" // 编码错误
  24. const CODE_ORDERNOTEXIST = "ORDERNOTEXIST" // 交易订单号不存在
  25. const CODE_BIZERR_NEED_RETRY = "BIZERR_NEED_RETRY" // 退款业务流程错误,需要商户触发重试来解决
  26. const CODE_TRADE_OVERDUE = "TRADE_OVERDUE" // 订单已经超过退款期限
  27. const CODE_USER_ACCOUNT_ABNORMAL = "USER_ACCOUNT_ABNORMAL" // 退款请求失败用户帐号注销
  28. const CODE_INVALID_REQ_TOO_MUCH = "INVALID_REQ_TOO_MUCH" // 无效请求过多
  29. const CODE_INVALID_TRANSACTIONID = "INVALID_TRANSACTIONID" // 无效transaction_id
  30. const CODE_PARAM_ERROR = "PARAM_ERROR" // 参数错误
  31. const CODE_FREQUENCY_LIMITED = "FREQUENCY_LIMITED" // 请求频率限制