From feebefb10dd34a7782de63f49d0ab7f50eb08d30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Sun, 7 Feb 2021 10:45:46 +0800 Subject: [PATCH] aa --- business/partner/purchase/ebai/store.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/business/partner/purchase/ebai/store.go b/business/partner/purchase/ebai/store.go index 93c640d38..2b14a1158 100644 --- a/business/partner/purchase/ebai/store.go +++ b/business/partner/purchase/ebai/store.go @@ -632,8 +632,6 @@ func (c *PurchaseHandler) GetShopIDsByPage() (vendorStoreIDs []string, err error } func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName string, params map[string]interface{}, storeDetail *dao.StoreDetail) (vendorStoreID string, err error) { - brands, err := dao.GetBrands(db, "", storeDetail.BrandID) - brand := brands[0] param := make(map[string]interface{}) param["shop_id"] = utils.Int2Str(storeID) param["supplier_id"] = params["supplierID"] @@ -652,7 +650,7 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri // phone = model.VendorStoreTel // } ebaiInfo := ebaiSupplierInfo[param["supplier_id"].(string)] - if strings.Contains(brand.Name, "京西到家") { + if ebaiInfo.SupplierID == EbaiSupplierIDsc { param["name"] = storeDetail.Name } else { param["name"] = ebaiInfo.BrandName + "(" + storeDetail.Name + ")"