|
|
|
Name: usercenter.rpc
|
|
|
|
ListenOn: 127.0.0.1:40001
|
|
|
|
Timeout: 5000
|
|
|
|
Etcd:
|
|
|
|
Hosts:
|
|
|
|
- 127.0.0.1:2379
|
|
|
|
Key: usercenter.rpc.v2.dev
|
|
|
|
Timeout: 5000 # default is 2000
|
|
|
|
NonBlock: true
|
|
|
|
Log:
|
|
|
|
Mode: console
|
|
|
|
KeepDays: 7
|
|
|
|
Level: info
|
|
|
|
DB:
|
|
|
|
#DataSource: root:root@tcp(192.168.1.100:3306)/dmgame?charset=utf8mb4&loc=Asia%2FShanghai&parseTime=true
|
|
|
|
DataSource: root:root@tcp(127.0.0.1:3306)/dmgame?charset=utf8mb4&loc=Asia%2FShanghai&parseTime=true
|
|
|
|
UserRetriever:
|
|
|
|
Enabled: false
|
|
|
|
UpdateDuration: 720 # 720 hours = 30 Day = 1 Month
|
|
|
|
Cron:
|
|
|
|
PlatformUser: "0 0/5 * * * ?" # 每隔5分钟执行一次
|
|
|
|
Nobility: "0 0/10 * * * ?" # 每隔10分钟执行一次
|
|
|
|
NobilityPlatforms: [ "bilibili" ] # 需要获取贵族的平台列表
|
|
|
|
Bilibili:
|
|
|
|
RoomId: 8722013
|
|
|
|
Mid: 6704420
|
|
|
|
RoomShortInfoApi: https://api.live.bilibili.com/room/v1/Room/room_init
|
|
|
|
TopListApi: https://api.live.bilibili.com/guard/topList
|
|
|
|
Rank:
|
|
|
|
Enabled: true
|
|
|
|
Cron:
|
|
|
|
Update: "@every 10s" # 10s一次
|
|
|
|
Persistence: "@every 10m" # 10min一次
|
|
|
|
GiftCollector:
|
|
|
|
Enabled: false
|
|
|
|
Platforms: [ "bilibili" ]
|
|
|
|
Cron:
|
|
|
|
CollectGift: "0 0 0/6 * * ?" # 每隔6小时执行一次
|
|
|
|
Integral:
|
|
|
|
# RMB到积分的转换
|
|
|
|
RMBToIntegral: 1000
|
|
|
|
# 平台礼物到RMB的转换
|
|
|
|
GiftToRMB:
|
|
|
|
bilibili: 0.001
|
|
|
|
# 平台免费礼物到积分的转换
|
|
|
|
FreeToIntegral:
|
|
|
|
bilibili: 0.0001
|