From 3e34509f86e0972973ab4941aa95500e91a4392b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 13 Apr 2020 13:40:04 +0800 Subject: [PATCH] =?UTF-8?q?cookie=E6=A3=80=E6=9F=A5=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/event/event.go | 1 + business/jxstore/misc/misc.go | 3 ++- business/partner/purchase/ebai/store.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/business/jxstore/event/event.go b/business/jxstore/event/event.go index 1e55b7e72..7dc392dde 100644 --- a/business/jxstore/event/event.go +++ b/business/jxstore/event/event.go @@ -190,6 +190,7 @@ func GetCheckVendorCookie(ctx *jxcontext.Context, vendorIDs []int, isAuto bool) errMsg += fmt.Sprintf(" 美团账号:[%v]的Cookie无效了!", vv) flag = true } + globals.SugarLogger.Debugf("cookieCheck", err) } case model.VendorIDJD: result, err := jd.GetAPI(vv).GetJdUpcCodeByName("", jdUpcCode, 1, 5) diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index a7836b4cd..27d802753 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -329,7 +329,6 @@ func doDailyWork() { cms.CurVendorSync.SyncStore2(jxcontext.AdminCtx, dao.GetDB(), nil, nil, true, true) syncStoreSku() - localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx) InitEx() // 每天补全前一天与当天的订单 @@ -345,6 +344,8 @@ func doDailyWork() { event.DeleteOperateEventAndDetail(jxcontext.AdminCtx, time.Now().AddDate(0, -1, 0)) //禁用没有绑定的门店 cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true) + //刷新物料订单状态 + localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx) } func RefreshRealMobile(ctx *jxcontext.Context, vendorID int, fromTime, toTime time.Time, isAsync, isContinueWhenError bool) (hint string, err error) { diff --git a/business/partner/purchase/ebai/store.go b/business/partner/purchase/ebai/store.go index 29aea0aae..3eeb47e12 100644 --- a/business/partner/purchase/ebai/store.go +++ b/business/partner/purchase/ebai/store.go @@ -159,7 +159,7 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin ` if err = dao.GetRows(db, &stores, sql, model.VendorIDEBAI, utils.DefaultTimeValue, storeID); err == nil { for _, store := range stores { - // globals.SugarLogger.Debug(utils.Format4Output(params, false)) + globals.SugarLogger.Debugf("testUpdateStoreStatus1 storeID", storeID, utils.Format4Output(store, false)) if globals.EnableEbaiStoreWrite { shopID := 0 if store.SyncStatus&model.SyncFlagDeletedMask == 0 {