This commit is contained in:
邹宗楠
2023-10-19 15:26:42 +08:00
parent 5a1a58aa73
commit 5970672ee0
2 changed files with 10 additions and 2 deletions

View File

@@ -327,11 +327,12 @@ func makeRiderInfo(fakeWayBill *model.Waybill, riderInfo *utils.RiderInfo) {
globals.SugarLogger.Debugf("========storeDetail := %s", utils.Format4Output(storeDetail, false))
waybill2, err := cms.GetSToURidingDistance2(jxutils.IntCoordinate2Standard(storeDetail.Lng), jxutils.IntCoordinate2Standard(storeDetail.Lat), jxutils.IntCoordinate2Standard(order.ConsigneeLng), jxutils.IntCoordinate2Standard(order.ConsigneeLat), fakeWayBill.VendorOrderID)
globals.SugarLogger.Debugf("========waybill2 := %s", utils.Format4Output(waybill2, false))
globals.SugarLogger.Debugf("========err := %v", err)
if err != nil {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, "2452A93EEB9111EC9B06525400E86DC0", "百度地图骑行方案获取错误:", utils.Format4Output(err.Error(), false))
}
globals.SugarLogger.Debugf("========waybill2 := %s", utils.Format4Output(waybill2, false))
globals.SugarLogger.Debugf("========err := %v", err)
courierCoordinate := strings.Split(waybill2.CourierCoordinate, ",")
if len(courierCoordinate) < 2 && fakeWayBill.Status < model.WaybillStatusDelivered {
courierCoordinate = append(courierCoordinate, utils.Float64ToStr(jxutils.IntCoordinate2Standard(storeDetail.Lng)), utils.Float64ToStr(jxutils.IntCoordinate2Standard(storeDetail.Lat)))