aa
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user