mcn-admin-test.toml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  1. version = "1.0.0"
  2. [log]
  3. stdout = true
  4. [app]
  5. key = "b8f239ca38a53308"
  6. secret = "5460ef72fe13c10dfb53442b9111427e"
  7. [bfs]
  8. bucket = "mcn"
  9. key = "0i4zga2vht5cnrw6"
  10. secret = "i3sryb7gdfwvtqmkne49x2ojp8l065"
  11. [bm]
  12. addr = "0.0.0.0:8000"
  13. timeout = "5s"
  14. [host]
  15. bfs = "http://bfs.bilibili.co"
  16. msg = "http://message.bilibili.co"
  17. videoup = "http://archive.api.bilibili.co"
  18. api = "http://api.bilibili.co"
  19. [mysql]
  20. addr = "172.16.33.205:3306"
  21. dsn = "upcrm:DdL6c5JaWCYKMAQ10PURbfeImow9HXlx@tcp(172.16.33.205:3306)/bilibili_upcrm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  22. active = 5
  23. idle = 1
  24. idleTimeout ="4h"
  25. queryTimeout = "1000ms"
  26. execTimeout = "1000ms"
  27. tranTimeout = "1000ms"
  28. [mysql.breaker]
  29. window = "3s"
  30. sleep = "100ms"
  31. bucket = 10
  32. ratio = 0.5
  33. request = 100
  34. [memcache]
  35. name = "mcn-admin"
  36. proto = "tcp"
  37. addr = "172.18.33.60:11216"
  38. active = 10
  39. idle = 10
  40. dialTimeout = "1s"
  41. readTimeout = "1s"
  42. writeTimeout = "1s"
  43. idleTimeout = "10s"
  44. [httpClient]
  45. key = "b8f239ca38a53308"
  46. secret = "5460ef72fe13c10dfb53442b9111427e"
  47. dial = "1s"
  48. timeout = "5s"
  49. keepAlive = "60s"
  50. [httpClient.breaker]
  51. window = "3s"
  52. sleep = "100ms"
  53. bucket = 10
  54. ratio = 0.5
  55. request = 100
  56. [grpcclient]
  57. [grpcclient.account]
  58. timeout = "1s"
  59. [grpcclient.member]
  60. timeout = "1s"
  61. [grpcclient.archive]
  62. timeout = "1s"
  63. [auth]
  64. managerHost = "http://uat-manager.bilibili.co"
  65. dashboardHost = "http://dashboard-mng.bilibili.co"
  66. dashboardCaller = "manager-go"
  67. [auth.DsHTTPClient]
  68. key = "manager-go"
  69. secret = "949bbb2dd3178252638c2407578bc7ad"
  70. dial = "1s"
  71. timeout = "1s"
  72. keepAlive = "60s"
  73. [auth.DsHTTPClient.breaker]
  74. window = "3s"
  75. sleep = "100ms"
  76. bucket = 10
  77. ratio = 0.5
  78. request = 100
  79. [auth.MaHTTPClient]
  80. key = "f6433799dbd88751"
  81. secret = "36f8ddb1806207fe07013ab6a77a3935"
  82. dial = "1s"
  83. timeout = "1s"
  84. keepAlive = "60s"
  85. [auth.MaHTTPClient.breaker]
  86. window = "3s"
  87. sleep = "100ms"
  88. bucket = 10
  89. ratio = 0.5
  90. request = 100
  91. [auth.session]
  92. sessionIDLength = 32
  93. cookieLifeTime = 1800
  94. cookieName = "mng-go"
  95. domain = ".bilibili.co"
  96. [auth.session.Memcache]
  97. name = "go-business/auth"
  98. proto = "tcp"
  99. addr = "172.18.33.61:11232"
  100. active = 5
  101. idle = 5
  102. dialTimeout = "1s"
  103. readTimeout = "1s"
  104. writeTimeout = "1s"
  105. idleTimeout = "80s"
  106. [managerLog]
  107. Key = "2511663d546f1413"
  108. Secret = "cde3b480836cc76df3d635470f991caa"
  109. Group = "LogAudit-MainSearch-P"
  110. Topic = "LogAudit-T"
  111. Action = "pub"
  112. Buffer = 10240
  113. Name = "log-audit/log-sub"
  114. Proto = "tcp"
  115. Addr = "172.18.33.50:6205"
  116. Active = 10
  117. Idle = 5
  118. DialTimeout = "200ms"
  119. ReadTimeout = "200ms"
  120. WriteTimeout = "200ms"
  121. IdleTimeout = "80s"
  122. [property]
  123. # MCN申请MCN管理入口申请成功
  124. [[property.msg]]
  125. msgType = 1
  126. code = "116_1_1"
  127. title = "MCN管理后台申请已通过"
  128. content = '您申请的mcn管理后台已通过,个人页点击mcn管理中心即可查看,快快去关联旗下up主吧,记得关联上自己的账号哦,点击去#{关联up主}{"https://member.bilibili.com/studio/mcn/m/home"}——”'
  129. # MCN申请MCN管理入口申请未通过
  130. [[property.msg]]
  131. msgType = 2
  132. code = "116_1_2"
  133. title = "MCN管理后台申请未通过"
  134. content = '非常抱歉您的申请由于%s的原因暂未通过,点击#{再次申请}{"https://member.bilibili.com/studio/mcn/m/welcome"}'
  135. # MCN申请和up主绑定申请授权
  136. [[property.msg]]
  137. msgType = 3
  138. code = "116_2_1"
  139. title = "MCN账号绑定申请"
  140. content = '现有用户昵称%s(uid:%d),属于公司%s,申请与您的账号绑定授权。授权后您的账号数据将与对方共享,点击#{查看授权详情}{"https://member.bilibili.com/studio/mcn/authorization/%d?type=bind"}'
  141. # MCN申请和up主绑定up主同意等待运营审核中
  142. [[property.msg]]
  143. msgType = 4
  144. code = "116_2_2"
  145. title = "MCN账号绑定申请"
  146. content = "您已成功确认与“%s公司”,用户名“%s”,UID:%d的合作关系,我们会在3个工作日内审核并以站内信告知是否绑定。"
  147. # MCN申请和up主绑定up主同意且运营通过
  148. [[property.msg]]
  149. msgType = 5
  150. code = "116_2_3"
  151. title = "您已成功与up主账号绑定"
  152. content = "您已经成功绑定用户昵称%s(uid:%d),您将可以在MCN后台系统中查看该UP主的相关数据"
  153. # MCN申请和up主绑定up主同意且运营通过
  154. [[property.msg]]
  155. msgType = 6
  156. code = "116_2_4"
  157. title = "您已成功与MCN账号绑定"
  158. content = "您已经成功绑定公司:%s公司,用户名“%s”,UID:%d,您的账号数据将与MCN共享"
  159. # MCN申请和up主绑定up主同意但运营未通过
  160. [[property.msg]]
  161. msgType = 7
  162. code = "116_2_5"
  163. title = "您与UP账号绑定审核未通过"
  164. content = "您与用户昵称%s(uid:%d)的绑定申请,因%s的原因被驳回,绑定失败"
  165. # MCN申请和up主绑定up主同意但运营未通过
  166. [[property.msg]]
  167. msgType = 8
  168. code = "116_2_6"
  169. title = "您与MCN账号绑定审核未通过"
  170. content = "您与%s公司,用户名“%s”,UID:%d,的绑定申请,因%s的原因被驳回,绑定失败"
  171. # MCN申请和up主绑定被up主拒绝
  172. [[property.msg]]
  173. msgType = 9
  174. code = "116_2_7"
  175. title = "您与UP账号绑定申请未通过"
  176. content = "用户昵称%s(uid:%d)拒绝与您的主账号进行绑定,请确认邀请UP主的昵称与UID无误后再次申请"
  177. # MCN和up主纠纷处理 - Up主和MCN关系冻结
  178. [[property.msg]]
  179. msgType = 10
  180. code = "116_3_1"
  181. title = "您与MCN的绑定关系已暂时冻结"
  182. content = "已暂时冻结您与%s公司,用户名“%s”,UID:%d的合约关系,冻结期内您的所有数据将不再对该账号进行展示"
  183. # MCN和up主纠纷处理 - Up主和MCN关系冻结
  184. [[property.msg]]
  185. msgType = 11
  186. code = "116_3_2"
  187. title = "您与up主的绑定关系已暂时冻结"
  188. content = "已暂时冻结用户昵称%s(uid:%d)与您的合约关系,冻结期内该UP主的所有数据将不再对您进行展示,此期间该UP的增长数据将不计入您的数据表现中"
  189. # MCN和up主纠纷处理 - Up主和MCN提前解约
  190. [[property.msg]]
  191. msgType = 12
  192. code = "116_3_3"
  193. title = "您与MCN的绑定关系已解除"
  194. content = "已解除您与%s公司,用户名“%s”,UID:%d的合约关系,您的所有数据将不再对该账号进行展示"
  195. # MCN和up主纠纷处理 - Up主和MCN提前解约
  196. [[property.msg]]
  197. msgType = 13
  198. code = "116_3_4"
  199. title = "您与up主的绑定关系已解除"
  200. content = "已解除用户昵称%s(uid:%d)与您的合约关系,该UP主的所有数据将不再对您进行展示,该UP的数据增长将停止在冻结日/解约日"
  201. # MCN违规账号封禁
  202. [[property.msg]]
  203. msgType = 14
  204. code = "116_4_1"
  205. title = "MCN后台被暂时封禁"
  206. content = "非常抱歉您的MCN后台被暂时封禁,冻结期间将无法使用"
  207. # MCN违规账号清退
  208. [[property.msg]]
  209. msgType = 15
  210. code = "116_4_2"
  211. title = "MCN后台被关闭"
  212. content = "非常抱歉您的MCN后台被关闭,关闭后您的MCN后台将无法登录"
  213. # MCN和B站续约
  214. [[property.msg]]
  215. msgType = 16
  216. code = "116_1_3"
  217. title = "MCN管理后台成功续约"
  218. content = '恭喜您成功续约创作合伙人计划,成为我们新一期的合作伙伴,与我们共同打造良好的站内生态'
  219. # MCN违规账号冻结期结束,账号恢复
  220. [[property.msg]]
  221. msgType = 17
  222. code = "116_4_3"
  223. title = "MCN后台已恢复"
  224. content = '您的MCN管理后台功能已恢复,点击进入MCN管理后台'
  225. # MCN新开权限
  226. [[property.msg]]
  227. msgType = 18
  228. code = "116_5_1"
  229. title = "你的%s开通"
  230. content = '你的%s已开通,快去看看吧——'
  231. # MCN权限关闭
  232. [[property.msg]]
  233. msgType = 19
  234. code = "116_5_2"
  235. title = "你的%s关闭"
  236. content = '你的%s被关闭了哦'
  237. # UP主不同意授权变更
  238. [[property.msg]]
  239. msgType = 20
  240. code = "116_6_1"
  241. title = "与%sUP主的权限变更失败"
  242. content = '与%sUP主的合作权限变更因up主不同意授权未通过'
  243. # 运营不同意授权变更
  244. [[property.msg]]
  245. msgType = 21
  246. code = "116_6_2"
  247. title = "与%sUP主的权限变更失败"
  248. content = '与%sUP主的合作权限变更因%s原因审核未通过'
  249. # 运营同意授权变更
  250. [[property.msg]]
  251. msgType = 22
  252. code = "116_6_3"
  253. title = "与%sUP主的权限变更成功"
  254. content = '与%sUP主的合作权限已成功变更,当前权限为:%s'
  255. # MCN申请与UP主绑定的权限变更
  256. [[property.msg]]
  257. msgType = 23
  258. code = "116_6_4"
  259. title = "您与%sMCN的授权发生变更,请确认是否同意"
  260. content = '%sMCN申请与您的权限变更为:%s,#{点击链接}{"https://member.bilibili.com/studio/mcn/authorization/%d?type=reauth"}确认是否同意变更权限'