From c566c4b16ed17301ba4545a746196d6465099194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 5 Feb 2021 16:01:14 +0800 Subject: [PATCH] aa --- business/partner/purchase/ebai/store.go | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/business/partner/purchase/ebai/store.go b/business/partner/purchase/ebai/store.go index b90a80afa..04986d3b9 100644 --- a/business/partner/purchase/ebai/store.go +++ b/business/partner/purchase/ebai/store.go @@ -23,6 +23,7 @@ type tEbaiSupplierInfo struct { Logo string `json:"logo"` Categorys []map[string]interface{} BusinessFormID int //门店业态 + BrandName string } var ( @@ -37,6 +38,7 @@ var ( }, }, BusinessFormID: 1672214913, + BrandName: "京西到家", }, EbaiSupplierIDhc: &tEbaiSupplierInfo{ SupplierID: EbaiSupplierIDhc, @@ -64,6 +66,7 @@ var ( }, }, BusinessFormID: 1917869373, + BrandName: "好菜鲜生", }, EbaiSupplierIDc4: &tEbaiSupplierInfo{ SupplierID: EbaiSupplierIDc4, @@ -91,6 +94,7 @@ var ( }, }, BusinessFormID: 1917869373, + BrandName: "京西菜市", }, } ) @@ -632,11 +636,6 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri brand := brands[0] param := make(map[string]interface{}) param["shop_id"] = utils.Int2Str(storeID) - if strings.Contains(brand.Name, "京西到家") { - param["name"] = storeDetail.Name - } else { - param["name"] = brand.Name + "(" + storeDetail.Name + ")" - } param["supplier_id"] = params["supplierID"] //省市区 placeCity, err := dao.GetPlaceByCode(db, storeDetail.CityCode) @@ -653,6 +652,11 @@ 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, "京西到家") { + param["name"] = storeDetail.Name + } else { + param["name"] = ebaiInfo.BrandName + "(" + storeDetail.Name + ")" + } param["phone"] = phone param["ivr_phone"] = phone param["service_phone"] = storeDetail.Tel1