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

import (
	"git.hilo.cn/hilo-common/resource/config"
chenweijian's avatar
chenweijian committed
5
	"hilo-user/corn/cp_corn"
hujiebin's avatar
hujiebin committed
6
	"hilo-user/cron/cp_cron"
hujiebin's avatar
hujiebin committed
7 8 9 10 11 12 13
	"hilo-user/cron/gift_cron"
)

func Init() {
	if !config.IsMaster() {
		return
	}
hujiebin's avatar
hujiebin committed
14 15 16
	gift_cron.SendGiftEventInit() // 礼物消息
	gift_cron.GiftRemark()        // 礼物消息补偿
	cp_cron.ClearCpExpire()       // 清理过期cp
hujiebin's avatar
hujiebin committed
17
	cp_cron.CpAnniversaryNotice() // cp纪念日
chenweijian's avatar
chenweijian committed
18
	cp_corn.CpInviteCancelInit()  // cp邀请、解除到期结算
hujiebin's avatar
hujiebin committed
19
}