1
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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, "")
|
||||||
|
|||||||
Reference in New Issue
Block a user