This commit is contained in:
suyl
2021-06-23 13:48:43 +08:00
parent 396a02a40d
commit 1dbe19eb4f

View File

@@ -285,9 +285,7 @@ func Init() {
dao.SetStoresMapSyncStatus(dao.GetDB(), nil, nil, model.SyncFlagStoreStatus)
cms.CurVendorSync.SyncStore2(jxcontext.AdminCtx, dao.GetDB(), []int{model.VendorIDMTWM, model.VendorIDJD, model.VendorIDEBAI}, nil, true, true)
if beego.BConfig.RunMode == "prod" {
syncStoreSku()
}
syncStoreSku()
InitEx()
cms.SyncStoresCourierInfo(jxcontext.AdminCtx, nil, false, true)
netprinter.RebindAllPrinters(jxcontext.AdminCtx, false, true)
@@ -398,7 +396,7 @@ func Init() {
func syncStoreSku() {
syncFlag := 0
if beego.BConfig.RunMode == "jxgy" {
syncFlag = model.SyncFlagPriceMask
//syncFlag = model.SyncFlagPriceMask
if true {
syncFlag |= model.SyncFlagSaleMask
}