Name: usercenter.rpc ListenOn: 127.0.0.1:40001 Timeout: 5000 Etcd: Hosts: - 127.0.0.1:2379 Key: usercenter.rpc.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 Kafka: UserNotify: Addr: [ "127.0.0.1:9093" ] Topic: "notify-user" RankUpdate: Addr: [ "127.0.0.1:9093" ] Topic: "rank-update" 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: # 签到积分配置 CheckIn: # 签到积分 一周 0(周日) 1 2 3 4 5 6 Points: [ 10000,2500,2500,3500,5000,6500,8000 ] Critical: 0.15 # 签到积分暴击率 CriticalRadio: [ 1.0, 1.0, 1.2, 1.5, 1.8 ] # 暴击倍率 BattleReport: WinRadio: 0.02 # 伤害量 1/50 LostRadio: 0.008 # 伤害量 1/120 # RMB到积分的转换 RMBToIntegral: 1000 # 平台礼物到RMB的转换 GiftToRMB: bilibili: 0.001 # 平台免费礼物到积分的转换 FreeToIntegral: bilibili: 0.00025