This commit is contained in:
苏尹岚
2021-02-05 16:03:34 +08:00
parent c566c4b16e
commit a388b89225

View File

@@ -645,21 +645,24 @@ func (p *PurchaseHandler) CreateStore2(db *dao.DaoDB, storeID int, userName stri
placeCounty, err := dao.GetPlaceByCode(db, storeDetail.DistrictCode) placeCounty, err := dao.GetPlaceByCode(db, storeDetail.DistrictCode)
param["county"] = placeCounty.EbaiCode param["county"] = placeCounty.EbaiCode
phone := "" // phone := ""
if storeDetail.MarketManPhone != "" { // if storeDetail.MarketManPhone != "" {
phone = storeDetail.MarketManPhone // phone = storeDetail.MarketManPhone
} else { // } else {
phone = model.VendorStoreTel // phone = model.VendorStoreTel
} // }
ebaiInfo := ebaiSupplierInfo[param["supplier_id"].(string)] ebaiInfo := ebaiSupplierInfo[param["supplier_id"].(string)]
if strings.Contains(brand.Name, "京西到家") { if strings.Contains(brand.Name, "京西到家") {
param["name"] = storeDetail.Name param["name"] = storeDetail.Name
} else { } else {
param["name"] = ebaiInfo.BrandName + "(" + storeDetail.Name + ")" param["name"] = ebaiInfo.BrandName + "(" + storeDetail.Name + ")"
} }
param["phone"] = phone // param["phone"] = phone
param["ivr_phone"] = phone // param["ivr_phone"] = phone
param["service_phone"] = storeDetail.Tel1 // param["service_phone"] = storeDetail.Tel1
param["phone"] = "18160030913"
param["ivr_phone"] = "18160030913"
param["service_phone"] = "18160030913"
param["address"] = storeDetail.Address param["address"] = storeDetail.Address
param["longitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lng) param["longitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lng)
param["latitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lat) param["latitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lat)