2020-02-10美团要求下架所有猪肉
This commit is contained in:
@@ -30,6 +30,13 @@ const (
|
||||
|
||||
var (
|
||||
subSensitiveWordRegexp = regexp.MustCompile(`[^\[\]\"\}]`)
|
||||
|
||||
// 2020-02-10美团要求下架所有猪肉
|
||||
meatCatMap = map[int]bool{
|
||||
20: true,
|
||||
184: true,
|
||||
59: true,
|
||||
}
|
||||
)
|
||||
|
||||
func CreateStoreCategoryByStoreSku(ctx *jxcontext.Context, vendorID, storeID int, vendorStoreID string, nameIDs, skuIDs []int) (err error) {
|
||||
@@ -378,6 +385,10 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag
|
||||
sku.VendorPrice = 0
|
||||
}
|
||||
sku.MergedStatus = MergeSkuSaleStatusWithStoreOpTime(sku, storeDetail, now)
|
||||
// 2020-02-10美团要求下架所有猪肉
|
||||
if globals.IsMainProductEnv() && vendorID == model.VendorIDMTWM && meatCatMap[sku.NameCategoryID] {
|
||||
sku.MergedStatus = model.SkuStatusDontSale
|
||||
}
|
||||
var bareSku *partner.StoreSkuInfo
|
||||
isNeedReorder := false
|
||||
if isStoreSkuSyncNeedDelete(sku) {
|
||||
|
||||
Reference in New Issue
Block a user