This commit is contained in:
aozhiwei 2020-11-16 13:56:46 +08:00
parent 6533a253fa
commit 256389acc0

View File

@ -255,4 +255,13 @@ func (this *RiskMgr) __opsInfo(w* http.ResponseWriter, r *http.Request) {
安装定时器定时更新逻辑
*/
func (this *RiskMgr) OnGameConfCreate(gameId int32, channel int32) {
f5.Timer().AddRepeatTimer(1000 * 30,
func (params* q5.XParams) {
},
func (params* q5.XParams) {
gameConf := this.GetGameConf(gameId, channel)
if gameConf != nil {
gameConf.SyncConf()
}
})
}