cron.go 326 Bytes
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5
package cron

import (
	"git.hilo.cn/hilo-common/resource/config"
	"hilo-group/cron/gift_cron"
hujiebin's avatar
hujiebin committed
6
	"hilo-group/cron/mic_cron"
hujiebin's avatar
hujiebin committed
7 8 9 10 11 12 13 14
)

func Init() {
	if !config.IsMaster() {
		return
	}
	gift_cron.SendGiftEventInit() // 礼物消息
	gift_cron.GiftRemark()        // 礼物消息补偿
hujiebin's avatar
hujiebin committed
15
	mic_cron.OnMicCheck()         // 检查上麦
hujiebin's avatar
hujiebin committed
16
}