1
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user