mcn-interface.toml 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. [log]
  2. stdout = true
  3. [memcache]
  4. name = "mcn-interface"
  5. proto = "tcp"
  6. addr = "172.16.63.98:11211"
  7. active = 50
  8. idle = 10
  9. dialTimeout = "1s"
  10. readTimeout = "1s"
  11. writeTimeout = "1s"
  12. idleTimeout = "10s"
  13. expire = "24h"
  14. McnSignCacheExpire = "10s"
  15. McnDataCacheExpire = "30s"
  16. [uploadantispam]
  17. on=true
  18. second=60
  19. n=10
  20. hour=1
  21. m=100
  22. [uploadantispam.redis]
  23. name = "mcn/mcn-interface"
  24. proto = "tcp"
  25. addr = "172.18.33.60:6893"
  26. idle = 10
  27. active = 10
  28. dialTimeout = "1s"
  29. readTimeout = "1s"
  30. writeTimeout = "1s"
  31. idleTimeout = "80s"
  32. expire = "10m"
  33. [MCNorm]
  34. dsn = "upcrm:DdL6c5JaWCYKMAQ10PURbfeImow9HXlx@tcp(172.16.33.205:3306)/bilibili_upcrm?timeout=5s&readTimeout=5s&writeTimeout=5s&parseTime=true&loc=Local&charset=utf8,utf8mb4"
  35. active = 5
  36. idle = 1
  37. idleTimeout = "4h"
  38. [bfs]
  39. bucket = "mcn"
  40. key = "0i4zga2vht5cnrw6"
  41. secret = "i3sryb7gdfwvtqmkne49x2ojp8l065"
  42. # 上传文件大小限制为10M
  43. maxFileSize = 10485760
  44. [host]
  45. bfs = "http://uat-bfs.bilibili.co"
  46. msg = "http://message.bilibili.co"
  47. Videoup = "http://uat-archive.api.bilibili.co"
  48. Api = "http://api.bilibili.co"
  49. [httpClient]
  50. key = "b8f239ca38a53308"
  51. secret = "5460ef72fe13c10dfb53442b9111427e"
  52. dial = "1s"
  53. timeout = "5s"
  54. keepAlive = "60s"
  55. [httpClient.breaker]
  56. window = "3s"
  57. sleep = "100ms"
  58. bucket = 10
  59. ratio = 0.5
  60. request = 100
  61. [Other]
  62. debug = true
  63. PublicationPriceChangeLimit = "1m"
  64. WhiteListMid = [370894821, 15555180]
  65. [grpcclient]
  66. [grpcclient.tag]
  67. timeout = "1s"
  68. [grpcclient.account]
  69. timeout = "1s"
  70. [grpcclient.member]
  71. timeout = "1s"
  72. [grpcclient.archive]
  73. timeout = "1s"
  74. [RankCache]
  75. Size = 1024
  76. ExpireTime = "15s"
  77. RecommendPoolExpireTime = "15s"
  78. [DataClientConf]
  79. Key = "b9739fc84d087c4b3c1aa297d01999e6"
  80. Secret = "5018928e83a23c0cc9773f2571de01e5"
  81. [property]
  82. # MCN申请MCN管理入口申请成功
  83. [[property.msg]]
  84. msgType = 1
  85. code = "116_1_1"
  86. title = "MCN管理后台申请已通过"
  87. content = '您申请的mcn管理后台已通过,个人页点击mcn管理中心即可查看,快快去关联旗下up主吧,记得关联上自己的账号哦,点击去#{关联up主}{"https://member.bilibili.com/studio/mcn/m/home"}——”'
  88. # MCN申请MCN管理入口申请未通过
  89. [[property.msg]]
  90. msgType = 2
  91. code = "116_1_2"
  92. title = "MCN管理后台申请未通过"
  93. content = '非常抱歉您的申请由于%s的原因暂未通过,点击#{再次申请}{"https://member.bilibili.com/studio/mcn/m/welcome"}'
  94. # MCN申请和up主绑定申请授权
  95. [[property.msg]]
  96. msgType = 3
  97. code = "116_2_1"
  98. title = "MCN账号绑定申请"
  99. content = '现有用户昵称%s(uid:%d),属于公司%s,申请与您的账号绑定授权。授权后您的账号数据将与对方共享,点击#{查看授权详情}{"https://member.bilibili.com/studio/mcn/authorization/%d?type=bind"}'
  100. # MCN申请和up主绑定up主同意等待运营审核中
  101. [[property.msg]]
  102. msgType = 4
  103. code = "116_2_2"
  104. title = "MCN账号绑定申请"
  105. content = "您已成功确认与“%s公司”,用户名“%s”,UID:%d的合作关系,我们会在3个工作日内审核并以站内信告知是否绑定。"
  106. # MCN申请和up主绑定up主同意且运营通过
  107. [[property.msg]]
  108. msgType = 5
  109. code = "116_2_3"
  110. title = "您已成功与up主账号绑定"
  111. content = "您已经成功绑定用户昵称%s(uid:%d),您将可以在MCN后台系统中查看该UP主的相关数据"
  112. # MCN申请和up主绑定up主同意且运营通过
  113. [[property.msg]]
  114. msgType = 6
  115. code = "116_2_4"
  116. title = "您已成功与MCN账号绑定"
  117. content = "您已经成功绑定公司:%s公司,用户名“%s”,UID:%d,您的账号数据将与MCN共享"
  118. # MCN申请和up主绑定up主同意但运营未通过
  119. [[property.msg]]
  120. msgType = 7
  121. code = "116_2_5"
  122. title = "您与UP账号绑定审核未通过"
  123. content = "您与用户昵称%s(uid:%d)的绑定申请,因%s的原因被驳回,绑定失败"
  124. # MCN申请和up主绑定up主同意但运营未通过
  125. [[property.msg]]
  126. msgType = 8
  127. code = "116_2_6"
  128. title = "您与MCN账号绑定审核未通过"
  129. content = "您与%s公司,用户名“%s”,UID:%d,的绑定申请,因%s的原因被驳回,绑定失败"
  130. # MCN申请和up主绑定被up主拒绝
  131. [[property.msg]]
  132. msgType = 9
  133. code = "116_2_7"
  134. title = "您与UP账号绑定申请未通过"
  135. content = "用户昵称%s(uid:%d)拒绝与您的主账号进行绑定,请确认邀请UP主的昵称与UID无误后再次申请"
  136. # MCN和up主纠纷处理 - Up主和MCN关系冻结
  137. [[property.msg]]
  138. msgType = 10
  139. code = "116_3_1"
  140. title = "您与MCN的绑定关系已暂时冻结"
  141. content = "已暂时冻结您与%s公司,用户名“%s”,UID:%d的合约关系,冻结期内您的所有数据将不再对该账号进行展示"
  142. # MCN和up主纠纷处理 - Up主和MCN关系冻结
  143. [[property.msg]]
  144. msgType = 11
  145. code = "116_3_2"
  146. title = "您与up主的绑定关系已暂时冻结"
  147. content = "已暂时冻结用户昵称%s(uid:%d)与您的合约关系,冻结期内该UP主的所有数据将不再对您进行展示,此期间该UP的增长数据将不计入您的数据表现中"
  148. # MCN和up主纠纷处理 - Up主和MCN提前解约
  149. [[property.msg]]
  150. msgType = 12
  151. code = "116_3_3"
  152. title = "您与MCN的绑定关系已解除"
  153. content = "已解除您与%s公司,用户名“%s”,UID:%d的合约关系,您的所有数据将不再对该账号进行展示"
  154. # MCN和up主纠纷处理 - Up主和MCN提前解约
  155. [[property.msg]]
  156. msgType = 13
  157. code = "116_3_4"
  158. title = "您与up主的绑定关系已解除"
  159. content = "已解除用户昵称%s(uid:%d)与您的合约关系,该UP主的所有数据将不再对您进行展示,该UP的数据增长将停止在冻结日/解约日"
  160. # MCN违规账号封禁
  161. [[property.msg]]
  162. msgType = 14
  163. code = "116_4_1"
  164. title = "MCN后台被暂时封禁"
  165. content = "非常抱歉您的MCN后台被暂时封禁,冻结期间将无法使用"
  166. # MCN违规账号清退
  167. [[property.msg]]
  168. msgType = 15
  169. code = "116_4_2"
  170. title = "MCN后台被关闭"
  171. content = "非常抱歉您的MCN后台被关闭,关闭后您的MCN后台将无法登录"
  172. # MCN和B站续约
  173. [[property.msg]]
  174. msgType = 16
  175. code = "116_1_3"
  176. title = "MCN管理后台成功续约"
  177. content = '恭喜您成功续约创作合伙人计划,成为我们新一期的合作伙伴,与我们共同打造良好的站内生态'
  178. # MCN违规账号冻结期结束,账号恢复
  179. [[property.msg]]
  180. msgType = 17
  181. code = "116_4_3"
  182. title = "MCN后台已恢复"
  183. content = '您的MCN管理后台功能已恢复,点击进入MCN管理后台'
  184. # MCN新开权限
  185. [[property.msg]]
  186. msgType = 18
  187. code = "116_5_1"
  188. title = "你的%s开通"
  189. content = '你的%s已开通,快去看看吧——'
  190. # MCN权限关闭
  191. [[property.msg]]
  192. msgType = 19
  193. code = "116_5_2"
  194. title = "你的%s关闭"
  195. content = '你的%s被关闭了哦'
  196. # UP主不同意授权变更
  197. [[property.msg]]
  198. msgType = 20
  199. code = "116_6_1"
  200. title = "与%sUP主的权限变更失败"
  201. content = '与%sUP主的合作权限变更因up主不同意授权未通过'
  202. # 运营不同意授权变更
  203. [[property.msg]]
  204. msgType = 21
  205. code = "116_6_2"
  206. title = "与%sUP主的权限变更失败"
  207. content = '与%sUP主的合作权限变更因%s原因审核未通过'
  208. # 运营同意授权变更
  209. [[property.msg]]
  210. msgType = 22
  211. code = "116_6_3"
  212. title = "与%sUP主的权限变更成功"
  213. content = '与%sUP主的合作权限已成功变更,当前权限为:%s'
  214. # MCN申请与UP主绑定的权限变更
  215. [[property.msg]]
  216. msgType = 23
  217. code = "116_6_4"
  218. title = "您与%sMCN的授权发生变更,请确认是否同意"
  219. content = '%sMCN申请与您的权限变更为:%s,#{点击链接}{"https://member.bilibili.com/studio/mcn/authorization/%d?type=reauth"}确认是否同意变更权限'