Merge branch 'jdshop' of https://e.coding.net/rosydev/jx-callback into jdshop

This commit is contained in:
richboo111
2022-11-04 11:48:49 +08:00
2 changed files with 4 additions and 1 deletions

View File

@@ -189,7 +189,7 @@ func Init() {
// 每分钟轮询一次,推送抖店骑手信息
ScheduleTimerFuncByInterval(func() {
delivery.UpdateFakeWayBillToTiktok()
}, 10*time.Second, 10*time.Minute)
}, 10*time.Second, 10*time.Second)
// 定时任务更新负责人信息
ScheduleTimerFunc("RefreshStoreOperator", func() {

View File

@@ -273,6 +273,9 @@ func UpdateFakeWayBillToTiktok() {
randTime += 60
}
fakeWayBill[i].ModelTimeInfo.UpdatedAt = time.Now().Add(time.Duration(randTime) * time.Second)
globals.SugarLogger.Debugf("randNumber :=------------%d", randNumber)
globals.SugarLogger.Debugf("randTime :=------------%d", randTime)
globals.SugarLogger.Debugf("UpdatedAt :=------------%v", fakeWayBill[i].ModelTimeInfo.UpdatedAt)
// 更新假运单
if _, err := dao.UpdateEntity(dao.GetDB(), fakeWayBill[i], "Status", "VendorStatus", "UpdatedAt"); err != nil {
globals.SugarLogger.Errorf("Update Fake Way Bill Err:%s--%s--%v", riderInfo.OrderId, riderInfo.ThirdCarrierOrderId, err)