test.toml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [mysql]
  2. addr = "127.0.0.1:3306"
  3. dsn = "test:test@tcp(127.0.0.1:3306)/bilibili_ugcpay?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  4. readDSN = ["test:test@tcp(127.0.0.1:3306)/bilibili_ugcpay?timeout=200ms&readTimeout=200ms&writeTimeout=200ms&parseTime=true&loc=Local&charset=utf8,utf8mb4"]
  5. active = 20
  6. idle = 10
  7. idleTimeout ="4h"
  8. queryTimeout = "100ms"
  9. execTimeout = "100ms"
  10. tranTimeout = "200ms"
  11. [memcache]
  12. name = "ugcpay"
  13. proto = "tcp"
  14. addr = ""
  15. dialTimeout = "1s"
  16. readTimeout = "1s"
  17. writeTimeout = "1s"
  18. active = 50
  19. idle = 10
  20. idleTimeout = "10s"
  21. [redis]
  22. name = "ugcpay"
  23. proto = "tcp"
  24. addr = ""
  25. dialTimeout = "1s"
  26. readTimeout = "1s"
  27. writeTimeout = "1s"
  28. active = 50
  29. idle = 10
  30. idleTimeout = "10s"
  31. [cacheTTL]
  32. OrderTTL = 1800
  33. AssetTTL = 64800
  34. AssetRelationTTL = 7200
  35. AggrIncomeUserTTL = 7200
  36. AggrIncomeUserMonthlyTTL = 7200
  37. [biz]
  38. RunCASTimes = 3
  39. [biz.pay]
  40. Token = "310f84dcc88ec8a0a9247f3b75b93614"
  41. ID = "10017"
  42. OrderTTL = 1800
  43. URLQuery = "http://pay.bilibili.com/payplatform/pay/query"
  44. URLCancel = "http://pay.bilibili.co/payplatform/pay/cancel"
  45. URLPayCallback = "http://api.bilibili.co/x/internal/ugcpay/trade/pay/callback"
  46. URLRefund = "http://pay.bilibili.co/payplatform/refund/request"
  47. URLRefundCallback = "http://api.bilibili.co/x/internal/ugcpay/trade/pay/refund/callback"
  48. [biz.price]
  49. [biz.price.PlatformTax]
  50. ios = 1.3