vip-job-test.toml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. # This is a TOML document. Boom.
  2. version = "1.0.0"
  3. vipURI = "http://vip.bilibili.co"
  4. [app]
  5. key = "ad4bb9b8f5d9d4a7"
  6. secret = "6912080d78d58be7cb94f57d50d438f6"
  7. [bm]
  8. addr = "0.0.0.0:6822"
  9. maxListen = 10
  10. timeout = "1s"
  11. [payConf]
  12. CustomerID = "10004"
  13. Token ="0ff3d296ee0d7a28b4db1d761d2db907"
  14. OrderNotifyURL ="http://vip.bilibili.co/pay/payOrderNotify"
  15. SignNotifyURL ="http://vip.bilibili.co/pay/paySignNotify"
  16. PlanID = 108217
  17. ProductID ="vip_buy"
  18. Version ="1.0"
  19. [URLConf]
  20. payCoUrl = "http://pay.bilibili.co"
  21. payUrl = "http://pay.bilibili.com"
  22. MsgUrl = "http://message.bilibili.co"
  23. mallUrl = "http://uat-mall.bilibili.co"
  24. accountUrl = "http://account.bilibili.com"
  25. apiCoUrl = "http://api.bilibili.co"
  26. oldVipCoURL = "http://vip.bilibili.co"
  27. [property]
  28. UpdateUserInfoCron = "0 0 0 * * ?"
  29. willExpireMsgCron = "0 0 0 * * ?"
  30. hadExpiredMsgCron = "0 0 0 * * ?"
  31. AutoRenewCron = "0 0 0 * * ?"
  32. SendMessageCron = "0 0 12 * * ?"
  33. SalaryVideoCouponCron = "0 0 2 1 * ?"
  34. PushDataCron = "0 0 3 * * ?"
  35. SalaryVideoCouponnIterval = "5ms"
  36. Retry = 3
  37. SalaryDay = 10
  38. annualVipSalaryCount = 4
  39. normalVipSalaryCount = 2
  40. frozenExpire = "15m"
  41. frozenDate = "30m"
  42. frozenLimit= 5
  43. frozenCron = "0 1 0 * * ?"
  44. sendBcoinCron = "0 0 0/1 10,11 * *"
  45. handlerThread = 5
  46. ReadThread = 3
  47. PayMapping = {3 = "wechart"}
  48. ActivityID = 142
  49. AnnualVipBcoinCouponMoney = 5
  50. AnnualVipBcoinDay = 10
  51. batchSize = 200
  52. salaryCouponMaps = {1 = {1 = 2, 2 = 4},2 = {1 = 8, 2 = 20}}
  53. salaryCouponTypes = [1,2]
  54. SalaryCouponBatchNoMaps = {1 = "view_%d_%s",2 = "cartoon_%d_%s"}
  55. salaryCouponMsgTitleMaps = {1 = "观影劵到账通知",2 = "漫画阅读劵到账通知"}
  56. salaryCouponMsgContentMaps = {1 = '大会员专享观影券已到账,#{点击查看>>}{"https://big.bilibili.com/mobile/userticket"}',2 = '大会员漫画阅读券已到账 #{点击查看>>}{"http://comic.bilibili.com/coupon.html"}'}
  57. salaryCouponMsgSupplyContentMaps = {1 = '升级年度大会员赠送观影券%d张已到账,#{点击查看>>}{"https://big.bilibili.com/mobile/userticket"}',2 = '升级年度大会员赠送漫画阅读券%d张已到账,#{点击查看>>}{"http://comic.bilibili.com/coupon.html"}'}
  58. salaryCouponURL = "http://api.bilibili.co/x/internal/coupon/grant"
  59. msgOpen = true
  60. activeStartTime = "2018-06-10 00:00:00"
  61. sendMedalEndTime = "2018-07-08 00:00:00"
  62. sendVipbuyEndTime = "2018-07-02 00:00:00"
  63. summerActiveStartTime = "2018-06-09 00:00:00"
  64. summerActiveEndTime = "2018-09-01 00:00:00"
  65. sendCodeStartTime = "2018-08-20 00:00:00"
  66. SendCodeEndTime = "2018-08-20 16:10:00"
  67. couponIDs =["669748557aba188d","ab9b24dfcc107c6b","fe42eca7ed959a36","00244f64f658d1be"]
  68. MedalID = 1
  69. codeExchangeMap = {1=[2,4],3=[3,8],12=[10,20]}
  70. codeExchangeTimeMap = {1=1,3=1,12=4}
  71. codeExchangePicMap = {1="http://i0.hdslb.com/bfs/activity-plat/static/20180615/d781502035dedd08821dacc88ea19b81/v573vo4y37.png",3="http://i0.hdslb.com/bfs/activity-plat/static/20180615/d781502035dedd08821dacc88ea19b81/89j8xm0019.png",12="http://i0.hdslb.com/bfs/activity-plat/static/20180615/d781502035dedd08821dacc88ea19b81/89j8xm0019.png"}
  72. vipbuyExchangeNameMap={"669748557aba188d"="会员购满349减40优惠券","ab9b24dfcc107c6b"="会员购满269减30优惠券","fe42eca7ed959a36"="会员购满169减20优惠券","00244f64f658d1be"="会员购满69减8优惠券"}
  73. grayScope = 500
  74. pushToken = "fi6xf5xmldudexsh5tgukerohn3mgrl3"
  75. businessId = 1
  76. splitPush = 2
  77. UpdateDB = true
  78. NotGrantLimit = 100
  79. EleEompensateCron = "*/5 * * * * ?"
  80. [RPC]
  81. [RPC.VipRPC]
  82. pullInterval = "10s"
  83. [VipRPC.client]
  84. token = "123456789"
  85. proto = "tcp"
  86. timeout = "1s"
  87. timer = 1000
  88. [VipRPC.client.breaker]
  89. window ="10s"
  90. sleep ="10ms"
  91. bucket = 10
  92. ratio = 0.5
  93. request = 100
  94. [VipRPC.zookeeper]
  95. root = "/microservice/vip/"
  96. addrs = ["172.18.33.50:2199","172.18.33.51:2199","172.18.33.52:2199"]
  97. timeout = "30s"
  98. [databusutil]
  99. size = 100
  100. chan = 1024
  101. num = 4
  102. [httpClient]
  103. key = "ad4bb9b8f5d9d4a7"
  104. secret = "6912080d78d58be7cb94f57d50d438f6"
  105. dial = "2s"
  106. timeout = "2s"
  107. keepAlive = "60s"
  108. timer = 128
  109. [httpClient.breaker]
  110. window = "3s"
  111. sleep = "100ms"
  112. bucket = 10
  113. ratio = 0.5
  114. request = 100
  115. [newMysql]
  116. addr = "172.16.33.205"
  117. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_vip?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  118. active = 5
  119. idle = 2
  120. IdleTimeout ="4h"
  121. queryTimeout = "2000ms"
  122. execTimeout = "2000ms"
  123. tranTimeout = "2000ms"
  124. [newMysql.breaker]
  125. window = "3s"
  126. sleep = "100ms"
  127. bucket = 10
  128. ratio = 0.5
  129. request = 100
  130. [oldMysql]
  131. addr = "172.16.33.205"
  132. dsn = "vip:lqfGWO9n3XihPokr@tcp(172.16.33.205:3306)/vip?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  133. active = 5
  134. idle = 2
  135. IdleTimeout ="4h"
  136. queryTimeout = "2000ms"
  137. execTimeout = "2000ms"
  138. tranTimeout = "2000ms"
  139. [oldMysql.breaker]
  140. window = "3s"
  141. sleep = "100ms"
  142. bucket = 10
  143. ratio = 0.5
  144. request = 100
  145. [databus]
  146. [databus.accLogin]
  147. key = "4ba46ba31f9a44ef"
  148. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  149. group = "Passport-MainAccount-S"
  150. topic = "Passport-T"
  151. action = "sub"
  152. offset = "old"
  153. buffer = 1024
  154. name = "vip-job"
  155. proto = "tcp"
  156. addr = "172.16.33.158:6205"
  157. idle = 1
  158. active = 1
  159. dialTimeout = "1s"
  160. readTimeout = "60s"
  161. writeTimeout = "1s"
  162. idleTimeout = "10s"
  163. [databus.oldVipBinLog]
  164. key = "4ba46ba31f9a44ef"
  165. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  166. group = "VipBinlog-MainAccount-S"
  167. topic = "VipBinlog-T"
  168. action = "sub"
  169. offset = "old"
  170. buffer = 1024
  171. name = "vip-job"
  172. proto = "tcp"
  173. addr = "172.16.33.158:6205"
  174. idle = 1
  175. active = 1
  176. dialTimeout = "1s"
  177. readTimeout = "60s"
  178. writeTimeout = "1s"
  179. idleTimeout = "10s"
  180. [databus.newVipBinLog]
  181. key = "4ba46ba31f9a44ef"
  182. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  183. group = "BiliVIPBinlog-MainAccount-S"
  184. topic = "BiliVIPBinlog-T"
  185. action = "sub"
  186. offset = "old"
  187. buffer = 1024
  188. name = "vip-job"
  189. proto = "tcp"
  190. addr = "172.16.33.158:6205"
  191. idle = 1
  192. active = 1
  193. dialTimeout = "1s"
  194. readTimeout = "60s"
  195. writeTimeout = "1s"
  196. idleTimeout = "10s"
  197. [databus.salaryCoupon]
  198. key = "4ba46ba31f9a44ef"
  199. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  200. group = "VipBinlog-MainAccount-S"
  201. topic = "VipBinlog-T"
  202. action = "sub"
  203. offset = "old"
  204. buffer = 1024
  205. name = "vip-job"
  206. proto = "tcp"
  207. addr = "172.16.33.158:6205"
  208. idle = 1
  209. active = 1
  210. dialTimeout = "1s"
  211. readTimeout = "60s"
  212. writeTimeout = "1s"
  213. idleTimeout = "10s"
  214. [databus.accountNotify]
  215. key = "4ba46ba31f9a44ef"
  216. secret = "eab6221e1948b24a7376f6d0535f668a"
  217. group = "AccountNotify-MainAccount-P"
  218. topic = "AccountNotify-T"
  219. action = "pub"
  220. offset = "old"
  221. buffer = 1024
  222. name = "vip-job"
  223. proto = "tcp"
  224. addr = "172.16.33.158:6205"
  225. idle = 1
  226. active = 1
  227. dialTimeout = "1s"
  228. readTimeout = "60s"
  229. writeTimeout = "1s"
  230. idleTimeout = "10s"
  231. [databus.couponNotify]
  232. key = "4ba46ba31f9a44ef"
  233. secret = "99985eb4451cfb1b899ca0fbe3c4bdc8"
  234. group = "BiliVIPBinlog-MainAccount-Coupon-S"
  235. topic = "BiliVIPBinlog-T"
  236. action = "sub"
  237. offset = "old"
  238. buffer = 1024
  239. name = "vip-job"
  240. proto = "tcp"
  241. addr = "172.16.33.158:6205"
  242. idle = 1
  243. active = 1
  244. dialTimeout = "1s"
  245. readTimeout = "60s"
  246. writeTimeout = "1s"
  247. idleTimeout = "10s"
  248. [memcache]
  249. name = "vip"
  250. proto = "tcp"
  251. addr = "172.18.33.60:11234"
  252. idle = 5
  253. active = 10
  254. dialTimeout = "1s"
  255. readTimeout = "1s"
  256. writeTimeout = "1s"
  257. idleTimeout = "10s"
  258. expire = "24h"
  259. [redis]
  260. name = "vip"
  261. proto = "tcp"
  262. addr = "172.18.33.61:6879"
  263. idle = 100
  264. active = 100
  265. dialTimeout = "1s"
  266. readTimeout = "1s"
  267. writeTimeout = "1s"
  268. idleTimeout = "10s"
  269. expire = "24h"
  270. [RPCClient2]
  271. [RPCClient2.coupon]
  272. timeout = "1s"