This commit is contained in:
邹宗楠
2023-12-29 10:34:40 +08:00
parent 6769d15e1e
commit 5be520a635
2 changed files with 22 additions and 17 deletions

View File

@@ -189,20 +189,24 @@ func Init() {
"22:00:00",
})
// 更新抖店订单的结算信息
ScheduleTimerFunc("UpdateTiktokShopTotalMoney", func() {
orderman.UpdateTiktokShopTotalMoney()
}, []string{
"03:00:00",
"05:00:00",
"07:00:00",
"09:00:00",
"11:00:00",
"14:00:00",
"16:00:00",
"19:00:00",
"21:00:00",
"01:00:00",
})
if beego.BConfig.RunMode != "jxgy" {
ScheduleTimerFunc("UpdateTiktokShopTotalMoney", func() {
orderman.UpdateTiktokShopTotalMoney()
}, []string{
"03:00:00",
"05:00:00",
"07:00:00",
"09:00:00",
"10:40:00",
"11:00:00",
"14:00:00",
"16:00:00",
"19:00:00",
"21:00:00",
"01:00:00",
})
}
/// 更新淘鲜达结算信息
ScheduleTimerFunc("UpdateTaoTotalMoney", func() {
orderman.UpdateTaoSettleInfo()