This commit is contained in:
邹宗楠
2023-09-12 18:05:20 +08:00
parent 22e90e0f09
commit 10d5d19cb7
2 changed files with 4 additions and 0 deletions

View File

@@ -165,7 +165,9 @@ func IsImportantTaskRunning(taskName string) bool {
}
func Init() {
globals.SugarLogger.Debugf("========================ScheduleTimerFuncByInterval=")
if globals.IsProductEnv() {
globals.SugarLogger.Debugf("========================ScheduleTimerFuncByInterval=2222")
//ScheduleTimerFunc("doDailyWork2", doDailyWork2, dailyWorkTimeList2)
//京东的订单信息解密密钥获取
@@ -209,6 +211,7 @@ func Init() {
// 每分钟轮询一次,推送骑手信息(假的订单)
ScheduleTimerFuncByInterval(func() {
globals.SugarLogger.Debugf("定时任务推送UpdateFakeWayBillToTiktok := ")
delivery.UpdateFakeWayBillToTiktok()
}, 10*time.Second, 2*time.Minute)

View File

@@ -401,6 +401,7 @@ func UpdateFakeWayBillToTiktok() {
//}
fakeWayBill, err := dao.GetWayBillFakeOrder()
globals.SugarLogger.Debugf("定时任务推送UpdateFakeWayBillToTiktok := %d", len(fakeWayBill))
if err != nil {
globals.SugarLogger.Debugf("Get Fake Order Err : %s", err.Error())
return