门店电话改为统一的

This commit is contained in:
苏尹岚
2020-05-18 14:19:14 +08:00
parent 457dd5e76d
commit da1473e893
4 changed files with 13 additions and 14 deletions

View File

@@ -59,6 +59,8 @@ const (
ExdStoreName = "饿鲜达"
MatterStoreID = 666666
JdShopMainVendorStoreID = "999999"
VendorStoreTel = "18011597879"
)
var (

View File

@@ -375,14 +375,15 @@ func ebaiOpTime2Jx(businessTime interface{}) (opTimeList []int16) {
func genStoreMapFromStore(store *tEbaiStoreInfo) map[string]interface{} {
params := fillOpTimeParams(nil, store.GetOpTimeList())
tel := store.Tel1
if tel == "" {
tel = store.Tel2
}
if tel != "" {
// params["phone"] = tel // 外卖客服联系电话,这个有时能修改,有时不能修改,暂时统一不改
params["ivr_phone"] = tel // 订单提醒电话
}
// tel := store.Tel1
// if tel == "" {
// tel = store.Tel2
// }
// if tel != "" {
// // params["phone"] = tel // 外卖客服联系电话,这个有时能修改,有时不能修改,暂时统一不改
// params["ivr_phone"] = tel // 订单提醒电话
// }
params["ivr_phone"] = model.VendorStoreTel //统一改为这个电话
if store.VendorStoreID != "" {
params["baidu_shop_id"] = store.VendorStoreID
}

View File

@@ -41,10 +41,6 @@ var (
}
)
const (
JdTe1 = "18011597879"
)
func (p *PurchaseHandler) ReadStore(ctx *jxcontext.Context, vendorOrgCode, vendorStoreID string) (*dao.StoreDetail, error) {
a := getAPI(vendorOrgCode)
result, err := a.GetStoreInfoByStationNo2(vendorStoreID)
@@ -145,7 +141,7 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
storeParams := &jdapi.OpStoreParams{
StationNo: store.VendorStoreID,
Operator: userName,
Phone: JdTe1,
Phone: model.VendorStoreTel,
Mobile: store.Tel1,
}
if store.SyncStatus&model.SyncFlagDeletedMask == 0 {

View File

@@ -135,7 +135,7 @@ func (p *PurchaseHandler) UpdateStore(db *dao.DaoDB, storeID int, userName strin
"address": storeDetail.Address, // 美团好像地址也不能改的?
"longitude": jxutils.IntCoordinate2Standard(int(remoteStoreInfo.Longitude)),
"latitude": jxutils.IntCoordinate2Standard(int(remoteStoreInfo.Latitude)),
"phone": storeDetail.Tel1,
"phone": model.VendorStoreTel,
"shipping_fee": remoteStoreInfo.ShippingFee,
"shipping_time": remoteStoreInfo.ShippingTime,
"open_level": remoteStoreInfo.OpenLevel,