test.toml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. active = 20
  5. idle = 10
  6. idleTimeout ="4h"
  7. queryTimeout = "100ms"
  8. execTimeout = "100ms"
  9. tranTimeout = "200ms"
  10. [memcache]
  11. name = "ugcpay"
  12. proto = "tcp"
  13. addr = "172.22.33.137:11217"
  14. dialTimeout = "1s"
  15. readTimeout = "1s"
  16. writeTimeout = "1s"
  17. active = 50
  18. idle = 10
  19. idleTimeout = "10s"
  20. [memcacheRank]
  21. name = "ugcpay-rank"
  22. proto = "tcp"
  23. addr = "172.22.33.137:11220"
  24. active = 50
  25. idle = 10
  26. dialTimeout = "1s"
  27. readTimeout = "1s"
  28. writeTimeout = "1s"
  29. idleTimeout = "10s"
  30. expire = "24h"
  31. [redis]
  32. name = "ugcpay"
  33. proto = "tcp"
  34. addr = "172.22.33.137:6836"
  35. dialTimeout = "1s"
  36. readTimeout = "1s"
  37. writeTimeout = "1s"
  38. active = 50
  39. idle = 10
  40. idleTimeout = "10s"
  41. [BinlogMQ]
  42. key = "4ba46ba31f9a44ef"
  43. secret = "e4c5a7fce28695209e6b4f0af8cf91c5"
  44. group = "UgcpayBinlog-MainAccount-S"
  45. topic = "UgcpayBinlog-T"
  46. action = "sub"
  47. buffer = 2048
  48. name = "ugcpay-job/databus"
  49. proto = "tcp"
  50. addr = "172.18.33.50:6205"
  51. idle = 2
  52. active = 10
  53. dialTimeout = "1s"
  54. readTimeout = "60s"
  55. writeTimeout = "1s"
  56. idleTimeout = "10s"
  57. [Biz]
  58. RunCASTimes = 3
  59. AccountUserMin = -20000
  60. [Biz.Cron]
  61. TaskDailyBill = "@every 1h"
  62. TaskAccountUser = "@every 1h"
  63. TaskAccountBiz = "@every 1h"
  64. TaskMonthlyBill = "@every 1h"
  65. TaskRechargeShell = "@every 1h"
  66. [Biz.Tax]
  67. AssetRate = 0.05
  68. [Biz.Pay]
  69. ID = "10017"
  70. Token = "310f84dcc88ec8a0a9247f3b75b93614"
  71. CheckOrderURL = "http://pay-mng.bilibili.co/reco/bills/queryByTxIds"
  72. CheckRefundOrderURL = "http://pay-mng.bilibili.co/reco/refundbills/queryByTxIds"
  73. RechargeShellURL = "http://pay.bilibili.co/bk-int/brokerage/rechargeBrokerage"
  74. RechargeCallbackURL = "http://api.bilibili.co/x/internal/ugcpay/trade/pay/recharge/callback"
  75. OrderQueryURL = "http://pay.bilibili.com/payplatform/pay/query"
  76. [Biz.Task]
  77. DailyBillPrefix = "TaskBillDaily"
  78. DailyBillOffset = -1
  79. AccountUserPrefix = "TaskAccountUser"
  80. AccountBizPrefix = "TaskAccountBiz"
  81. MonthBillPrefix = "TaskBillMonthly"
  82. MonthBillOffset = -1
  83. RechargeShellPrefix = "TaskRechargeShell"
  84. RechargeShellOffset = -1
  85. [CacheTTL]
  86. TaskTTL = 72000