This commit is contained in:
邹宗楠
2024-04-30 13:43:23 +08:00
parent 46fe089e36
commit 9d721e61a5
2 changed files with 5 additions and 3 deletions

View File

@@ -420,8 +420,12 @@ func Init() {
//刷新京东会员 //刷新京东会员
//report.RefreshJDMembers(jxcontext.AdminCtx) //report.RefreshJDMembers(jxcontext.AdminCtx)
cms.SetSingleStoreSkuSyncModifyStatus(dao.GetDB(), []int{1, 3}) cms.SetSingleStoreSkuSyncModifyStatus(dao.GetDB(), []int{1, 3})
cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, dao.GetDB(), []int{1, 3}, nil, false, nil, nil, model.SyncFlagSaleMask, true, true)
}, dailyWorkTimeList) }, dailyWorkTimeList)
ScheduleTimerFunc("doDailyWork2-1", func() {
// 刷新商品,换个时间节点,房子请求超时
cms.CurVendorSync.SyncStoresSkus2(jxcontext.AdminCtx, nil, 0, dao.GetDB(), []int{1, 3}, nil, false, nil, nil, model.SyncFlagSaleMask, true, true)
}, []string{"02:00:00"})
ScheduleTimerFunc("doDailyWork3", func() { ScheduleTimerFunc("doDailyWork3", func() {
dao.SetStoresMapSyncStatus(dao.GetDB(), nil, nil, model.SyncFlagStoreStatus) dao.SetStoresMapSyncStatus(dao.GetDB(), nil, nil, model.SyncFlagStoreStatus)
cms.CurVendorSync.SyncStore2Time(jxcontext.AdminCtx, dao.GetDB(), []int{model.VendorIDMTWM, model.VendorIDJD, model.VendorIDEBAI, model.VendorIDDD}, nil, true, true) cms.CurVendorSync.SyncStore2Time(jxcontext.AdminCtx, dao.GetDB(), []int{model.VendorIDMTWM, model.VendorIDJD, model.VendorIDEBAI, model.VendorIDDD}, nil, true, true)

View File

@@ -145,9 +145,7 @@ func (c *DjswController) SinglePromoteCreate() {
func (c *DjswController) StoreCrud() { func (c *DjswController) StoreCrud() {
if c.Ctx.Input.Method() == http.MethodPost { if c.Ctx.Input.Method() == http.MethodPost {
callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) { callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) {
globals.SugarLogger.Debugf("==========DjswController StoreCrud: %s", utils.Format4Output(obj, false))
callbackResponse = jd.OnStoreMsg(obj.(*jdapi.CallbackOrderMsg)) callbackResponse = jd.OnStoreMsg(obj.(*jdapi.CallbackOrderMsg))
globals.SugarLogger.Debugf("==========c.data : %s", utils.Format4Output(c.transferResponse("StoreCrud", callbackResponse), false))
return callbackResponse return callbackResponse
}) })
callbackResponse = jdapi.Err2CallbackResponse(nil, "") callbackResponse = jdapi.Err2CallbackResponse(nil, "")