activity-test.toml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. [rule]
  2. guessCount = 5
  3. maxGuessCoin = 1
  4. suitPids = [1]
  5. suitExpire = 100
  6. tickQq = "1m"
  7. qqTryCount = 5
  8. dTimeout = "3s"
  9. qqStartTime = "20180101"
  10. qqEndTime = "20181231"
  11. qqYear = "2017"
  12. playerYear = "2017"
  13. bwsMids = [111,222,333,908085]
  14. bwsAwardMids = [444]
  15. bwsLotteryMids = [555]
  16. bwsLotteryAids = [3,4,5,6]
  17. needInitAchieve = true
  18. dialectTags = [1,2,3]
  19. dialectRegions = [1,2,3]
  20. dialectSid = 111
  21. spylike = 40
  22. lotteryActID = 313
  23. [rpcServer]
  24. proto = "tcp"
  25. addr = ":6889"
  26. [httpClient]
  27. key = "33ac033ce123e590"
  28. secret = "0b2847315d32989a248294e350ac3ede"
  29. dial = "500ms"
  30. timeout = "2s"
  31. keepAlive = "60s"
  32. [httpClientSports]
  33. key = "33ac033ce123e590"
  34. secret = "0b2847315d32989a248294e350ac3ede"
  35. dial = "1s"
  36. timeout = "3s"
  37. keepAlive = "60s"
  38. [httpClientBnj]
  39. key = "33ac033ce123e590"
  40. secret = "0b2847315d32989a248294e350ac3ede"
  41. dial = "500ms"
  42. timeout = "300ms"
  43. keepAlive = "60s"
  44. [httpClientKfc]
  45. key = "33ac033ce123e590"
  46. secret = "0b2847315d32989a248294e350ac3ede"
  47. dial = "500ms"
  48. timeout = "300ms"
  49. keepAlive = "60s"
  50. [databus]
  51. [databus.bnj]
  52. key = "9765cdac5894f2ba"
  53. secret = "f4237d712c3ed1e7fab0137b81418b14"
  54. group = "ActBnjPreview-MainWebSvr-P"
  55. topic = "ActBnjPreview-T"
  56. action = "pub"
  57. idle = 100
  58. active = 100
  59. dialTimeout = "1s"
  60. readTimeout = "60s"
  61. writeTimeout = "1s"
  62. idleTimeout = "10s"
  63. [memcache]
  64. accessExpire = "10s"
  65. likeExpire = "3s"
  66. likeIPExpire = "30s"
  67. perpetualExpire = "0s"
  68. itemExpire = "60s"
  69. qqExpire = "600s"
  70. bwsExpire = "600m"
  71. kfcExpire = "10m"
  72. kfcCodeExpire = "1h"
  73. sourceItemExpire = "5m"
  74. protocolExpire = "1h"
  75. [memcache.like]
  76. name = "go-common/app/interface/main/activity/test"
  77. proto = "tcp"
  78. addr = "172.18.33.61:11220"
  79. idle = 5
  80. active = 10
  81. dialTimeout = "1s"
  82. readTimeout = "1s"
  83. writeTimeout = "1s"
  84. idleTimeout = "80s"
  85. [redis]
  86. name = "activity-service"
  87. proto = "tcp"
  88. addr = "127.0.0.1:32770"
  89. idle = 100
  90. active = 100
  91. dialTimeout = "1s"
  92. readTimeout = "1s"
  93. writeTimeout = "1s"
  94. idleTimeout = "10s"
  95. expire = "10s"
  96. matchExpire = "24h"
  97. followExpire = "2400h"
  98. userAchExpire = "1h"
  99. userPointExpire = "1h"
  100. achCntExpire = "1h"
  101. hotDotExpire = "720h"
  102. randomExpire = "300s"
  103. resetExpire = "5s"
  104. rewardExpire = "720h"
  105. [rpcClient2]
  106. [rpcClient2.account]
  107. timeout = "1s"
  108. [rpcClient2.archive]
  109. timeout = "1s"
  110. [rpcClient2.coin]
  111. timeout = "1s"
  112. [rpcClient2.suit]
  113. timeout = "1s"
  114. [mysql]
  115. [mysql.like]
  116. addr = "172.16.33.205:3308"
  117. dsn = "test:test@tcp(172.16.33.205:3308)/bilibili_lottery?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  118. active = 5
  119. idle = 2
  120. idleTimeout ="4h"
  121. queryTimeout = "1s"
  122. execTimeout = "1s"
  123. tranTimeout = "2s"
  124. [mysql.like.breaker]
  125. window ="3s"
  126. sleep ="100ms"
  127. bucket = 10
  128. ratio = 0.5
  129. [host]
  130. sports = "http://open.sports.qq.com"
  131. qqNews = "http://openapi.inews.qq.com"
  132. activity = "http://www.bilibili.com"
  133. apiCo = "http://api.bilibili.co"
  134. liveCo ="http://api.live.bilibili.co"
  135. [interval]
  136. newestSubTsInterval = "10m"
  137. pullArcTypeInterval = "10m"
  138. actSourceInterval = "10m"
  139. [bnj2019]
  140. timelinePic = "//activity.hdslb.com/blackboard/static/20180122/3f23658826b7a0a46f812d368533dc9f/images/j60y4n9j83.png"
  141. gameCancel = 0
  142. [[bnj2019.timeline]]
  143. name = "1111"
  144. start = "2018-06-04T00:00:00+08:00"
  145. end = "2018-06-05T10:00:00+08:00"
  146. cover = "//activity.hdslb.com/blackboard/static/20180122/3f23658826b7a0a46f812d368533dc9f/images/j60y4n9j83.png"
  147. [[bnj2019.timeline]]
  148. name = "2222"
  149. start = "2018-06-04T00:00:00+08:00"
  150. end = "2018-06-05T10:00:00+08:00"
  151. cover = "//i0.hdslb.com/bfs/activity-plat/cover/20180209/m6pvmmnpxx.jpg"
  152. [[bnj2019.reward]]
  153. step = 1
  154. condition = 1000000
  155. rewardID = "111"
  156. expire = 365
  157. rewardType = "pendant"
  158. [[bnj2019.reward]]
  159. step = 2
  160. condition = 2000000
  161. rewardID = "111"
  162. rewardType = "medal"
  163. [[bnj2019.reward]]
  164. step = 3
  165. condition = 3000000
  166. rewardID = "111"
  167. rewardType = "coupon"
  168. [[bnj2019.reward]]
  169. step = 4
  170. condition = 4000000
  171. rewardID = "111"
  172. rewardType = "live"
  173. [[bnj2019.info]]
  174. nav = "nav1"
  175. pic = "//activity.hdslb.com/blackboard/static/20180122/3f23658826b7a0a46f812d368533dc9f/images/j60y4n9j83.png"
  176. aid = 10111175
  177. detail = "detail1"
  178. publish = "2018-11-29T00:00:00+08:00"
  179. [[bnj2019.info]]
  180. nav = "nav2"
  181. pic = "//activity.hdslb.com/blackboard/static/20180122/3f23658826b7a0a46f812d368533dc9f/images/j60y4n9j83.png"
  182. aid = 10111172
  183. detail = "detail2"
  184. publish = "2018-11-29T00:00:00+08:00"