cron.go 873 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
	"hilo-group/cron/user_cron"
hujiebin's avatar
hujiebin committed
9 10 11
)

func Init() {
hujiebin's avatar
hujiebin committed
12
	user_cron.LoadSvipVipNoble() // 加载用户特权
hujiebin's avatar
hujiebin committed
13 14 15
	if !config.IsMaster() {
		return
	}
hujiebin's avatar
hujiebin committed
16 17
	//gift_cron.SendGiftEventInit()   // 礼物消息
	//gift_cron.GiftRemark()          // 礼物消息补偿
JiebinHu's avatar
JiebinHu committed
18 19
	gift_cron.SendGiftEvent()       // 礼物事件
	mic_cron.OnMicCheck()           // 检查上麦
hujiebin's avatar
hujiebin committed
20
	mic_cron.OnMicQueue()           // 检查上麦-队列操作
hujiebin's avatar
hujiebin committed
21
	group_cron.GroupPowerExpClear() // 清理家族经验/等级
chenweijian's avatar
chenweijian committed
22
	group_cron.GroupPowerMonthRankAct()
JiebinHu's avatar
JiebinHu committed
23
	//group_cron.GroupInEventInit()   // 进房事件
chenweijian's avatar
chenweijian committed
24
	//group_cron.CreateGroup()      //
chenweijian's avatar
chenweijian committed
25
	group_cron.CalcGroupSupport() // 群组扶持计算
chenweijian's avatar
chenweijian committed
26
	//group_cron.CalcGroupSupport_OldData()
chenweijian's avatar
chenweijian committed
27
	group_cron.GroupCountryListSort()
hujiebin's avatar
hujiebin committed
28
}