diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 280c1540f..d153d0334 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -4502,7 +4502,7 @@ func doStoreSkuAudit(ctx *jxcontext.Context, storeIDs []int, skuBindInfos []*Sto if len(storeAudits) > 0 { storeAudits[0].DeletedAt = time.Now() dao.UpdateEntity(db, storeAudits[0], "DeletedAt") - if !globals.IsProductEnv() { + if globals.IsProductEnv() { skuAndNames, err := dao.GetSkus(db, nil, []int{skuBindInfo.NameID}, nil, nil, nil) if len(skuAndNames) > 0 && err == nil { weixinmsg.NotifyStoreOpRequestStatus(true, storeID, skuBindInfo.NameID, jxutils.ComposeSpuName(skuAndNames[0].Prefix, skuAndNames[0].Name, 0), storeAudits[0].OriginUnitPrice, skuBindInfo.UnitPrice, "") @@ -4617,7 +4617,7 @@ func StoreSkuPriceAudit(ctx *jxcontext.Context, storeSkuAudits []*model.StoreSku return retVal, fmt.Errorf("审核标志不正确!") } if err == nil { - if !globals.IsProductEnv() { + if globals.IsProductEnv() { skuAndNames, err := dao.GetSkus(db, nil, []int{storeAudit.NameID}, nil, nil, nil) if len(skuAndNames) > 0 && err == nil { price := 0