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)
param["county"] = placeCounty.EbaiCode
phone := ""
if storeDetail.MarketManPhone != "" {
phone = storeDetail.MarketManPhone
} else {
phone = model.VendorStoreTel
}
// phone := ""
// if storeDetail.MarketManPhone != "" {
// phone = storeDetail.MarketManPhone
// } else {
// 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
// param["phone"] = phone
// param["ivr_phone"] = phone
// param["service_phone"] = storeDetail.Tel1
param["phone"] = "18160030913"
param["ivr_phone"] = "18160030913"
param["service_phone"] = "18160030913"
param["address"] = storeDetail.Address
param["longitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lng)
param["latitude"] = jxutils.IntCoordinate2Standard(storeDetail.Lat)