cookie检查测试

This commit is contained in:
苏尹岚
2020-04-13 13:40:04 +08:00
parent bc9b7ea059
commit 3e34509f86
3 changed files with 4 additions and 2 deletions

View File

@@ -190,6 +190,7 @@ func GetCheckVendorCookie(ctx *jxcontext.Context, vendorIDs []int, isAuto bool)
errMsg += fmt.Sprintf(" 美团账号:[%v]的Cookie无效了", vv) errMsg += fmt.Sprintf(" 美团账号:[%v]的Cookie无效了", vv)
flag = true flag = true
} }
globals.SugarLogger.Debugf("cookieCheck", err)
} }
case model.VendorIDJD: case model.VendorIDJD:
result, err := jd.GetAPI(vv).GetJdUpcCodeByName("", jdUpcCode, 1, 5) result, err := jd.GetAPI(vv).GetJdUpcCodeByName("", jdUpcCode, 1, 5)

View File

@@ -329,7 +329,6 @@ func doDailyWork() {
cms.CurVendorSync.SyncStore2(jxcontext.AdminCtx, dao.GetDB(), nil, nil, true, true) cms.CurVendorSync.SyncStore2(jxcontext.AdminCtx, dao.GetDB(), nil, nil, true, true)
syncStoreSku() syncStoreSku()
localjx.RefreshAllMatterOrderStatus(jxcontext.AdminCtx)
InitEx() InitEx()
// 每天补全前一天与当天的订单 // 每天补全前一天与当天的订单
@@ -345,6 +344,8 @@ func doDailyWork() {
event.DeleteOperateEventAndDetail(jxcontext.AdminCtx, time.Now().AddDate(0, -1, 0)) event.DeleteOperateEventAndDetail(jxcontext.AdminCtx, time.Now().AddDate(0, -1, 0))
//禁用没有绑定的门店 //禁用没有绑定的门店
cms.DisabledStoreWithoutVendor(jxcontext.AdminCtx, true, true) 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) { func RefreshRealMobile(ctx *jxcontext.Context, vendorID int, fromTime, toTime time.Time, isAsync, isContinueWhenError bool) (hint string, err error) {

View File

@@ -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 { if err = dao.GetRows(db, &stores, sql, model.VendorIDEBAI, utils.DefaultTimeValue, storeID); err == nil {
for _, store := range stores { for _, store := range stores {
// globals.SugarLogger.Debug(utils.Format4Output(params, false)) globals.SugarLogger.Debugf("testUpdateStoreStatus1 storeID", storeID, utils.Format4Output(store, false))
if globals.EnableEbaiStoreWrite { if globals.EnableEbaiStoreWrite {
shopID := 0 shopID := 0
if store.SyncStatus&model.SyncFlagDeletedMask == 0 { if store.SyncStatus&model.SyncFlagDeletedMask == 0 {