From fd8aee31ba5cc4bfd1b057451c192bf0d928fb19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Tue, 19 May 2020 17:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8F=91=E7=9F=AD=E4=BF=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/sku.go | 5 +++++ business/jxstore/tempop/tempop.go | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index 2a5f6aaf5..7e20ff16e 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -1120,6 +1120,11 @@ func AddSku(ctx *jxcontext.Context, nameID int, sku *model.Sku, userName string) err = ErrEntityNotExist } } + storeSkus, err := dao.GetStoreSkusByNameIDs(db, []int{model.JdShopMainStoreID}, nameID) + if len(storeSkus) > 0 { + skuBindInfos := []*StoreSkuBindInfo{} + FocusStoreSkusBySku(ctx, skuBindInfos, true, true) + } return outSkuNameExt, err } diff --git a/business/jxstore/tempop/tempop.go b/business/jxstore/tempop/tempop.go index 1e680f2b2..ea0472d24 100644 --- a/business/jxstore/tempop/tempop.go +++ b/business/jxstore/tempop/tempop.go @@ -1519,7 +1519,7 @@ func UploadJdsImage(ctx *jxcontext.Context) (err error) { // } // } // } - err = smsmsg.SendSMSMsg([]string{"18160030913"}, globals.SMSSignName, globals.SMSNewUserOrderTemplate, map[string]interface{}{ + err = smsmsg.SendSMSMsg([]string{"17096577102,531"}, globals.SMSSignName, globals.SMSNewUserOrderTemplate, map[string]interface{}{ "tel": "123", }, nil)