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