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)
flag = true
}
globals.SugarLogger.Debugf("cookieCheck", err)
}
case model.VendorIDJD:
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)
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) {