cron.go 733 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 7
	"hilo-group/cron/group_cron"
	"hilo-group/cron/mic_cron"
hujiebin's avatar
hujiebin committed
8 9 10 11 12 13
)

func Init() {
	if !config.IsMaster() {
		return
	}
hujiebin's avatar
hujiebin committed
14 15 16
	//gift_cron.SendGiftEventInit()   // 礼物消息
	//gift_cron.GiftRemark()          // 礼物消息补偿
	gift_cron.SendGiftEvent()       // 礼物事件
hujiebin's avatar
hujiebin committed
17 18
	mic_cron.OnMicCheck()           // 检查上麦
	group_cron.GroupPowerExpClear() // 清理家族经验/等级
chenweijian's avatar
chenweijian committed
19
	group_cron.GroupPowerMonthRankAct()
JiebinHu's avatar
JiebinHu committed
20
	//group_cron.GroupInEventInit()   // 进房事件
hujiebin's avatar
hujiebin committed
21
	group_cron.GroupPowerGradeExp() // 家族升级(上麦事件会用到) todo
chenweijian's avatar
chenweijian committed
22
	group_cron.CreateGroup()        //
chenweijian's avatar
chenweijian committed
23
	group_cron.CalcGroupSupport()   // 群组扶持计算
hujiebin's avatar
hujiebin committed
24
}