From a7f31f8789a73b59aebd8dca1c248b2151884dd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 21 Sep 2023 16:36:25 +0800 Subject: [PATCH] 1 --- business/jxcallback/orderman/order.go | 5 +++-- business/jxstore/misc/misc.go | 1 + business/partner/purchase/tiktok_store/callback.go | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index 2f13601de..8d477b7f3 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -2701,17 +2701,18 @@ func UpdateTiktokShopTotalMoney() { // UpdateTaoSettleInfo 定时任务更新淘鲜达结算信息 func UpdateTaoSettleInfo() { db := dao.GetDB() - + globals.SugarLogger.Debugf("======================UpdateTaoSettleInfo") storeMaps, err := dao.GetStoresMapList(db, []int{model.VendorIDTaoVegetable}, nil, nil, -9, -1, "", "", "") if err != nil { return } - timeStart := time.Now().Add(-24 * 90 * time.Hour) + timeStart := time.Now().Add(-24 * 60 * time.Hour) startTime := time.Date(timeStart.Year(), timeStart.Month(), timeStart.Day()-4, 0, 0, 0, 0, timeStart.Location()) timeEnd := time.Now() endTiem := time.Date(timeEnd.Year(), timeEnd.Month(), timeEnd.Day()-1, 23, 59, 59, 0, timeStart.Location()) for _, v := range storeMaps { + globals.SugarLogger.Debugf("========storeID := %s", v.VendorStoreID) settleInfo, err := tao.GetOrderTotalShopMoney(v.VendorOrgCode, v.VendorStoreID, startTime, endTiem) if err != nil { globals.SugarLogger.Errorf("获取淘鲜达结算信息异常 := %v", err) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 6889376fc..ae93d979b 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -204,6 +204,7 @@ func Init() { "06:30:00", "00:30:00", "12:30:00", + "16:40:00", }) // 每分钟轮询一次,推送骑手信息(假的订单) diff --git a/business/partner/purchase/tiktok_store/callback.go b/business/partner/purchase/tiktok_store/callback.go index bee40db01..2a1e418a1 100644 --- a/business/partner/purchase/tiktok_store/callback.go +++ b/business/partner/purchase/tiktok_store/callback.go @@ -30,6 +30,7 @@ func OnOrderMsg(msgId string, msg interface{}) (response *tiktokShop.CallbackRes orderId, shopId, _ := api.TiktokStore.GetCallbackOrderId(msgId, msg) orderDetail, err := GetTiktokApi(utils.Int64ToStr(shopId), 0, "").GetTiktokOrderDetail(orderId) if err != nil { + globals.SugarLogger.Debugf("GetTiktokApi msg := %s", utils.Format4Output(msg, false)) return tiktokShop.Err2CallbackResponse(err, "") } vendorStoreID := orderDetail.SkuOrderList[0].StoreInfo.StoreId