1
This commit is contained in:
@@ -610,7 +610,7 @@ func GetSToURidingDistance(sLng, sLat, uLng, uLat float64, orderId string) (step
|
||||
}
|
||||
|
||||
// GetSToURidingDistance2 获取商家与用户间步行距离
|
||||
func GetSToURidingDistance2(sLng, sLat, uLng, uLat float64, orderId string) (wayBill *model.Waybill, err error) {
|
||||
func GetSToURidingDistance2(sLng, sLat, uLng, uLat float64, orderId string, vendors []int64) (wayBill *model.Waybill, err error) {
|
||||
var (
|
||||
db = dao.GetDB()
|
||||
vendorMaps = map[int]int{model.VendorIDDada: 1, model.VendorIDFengNiao: 1, model.VendorIDMTPS: 1, model.VendorIDUUPT: 1, model.VendorIDSFPS: 1}
|
||||
@@ -618,7 +618,7 @@ func GetSToURidingDistance2(sLng, sLat, uLng, uLat float64, orderId string) (way
|
||||
|
||||
for {
|
||||
// 骑手坐标
|
||||
waybills, err := dao.GetWaybills(db, orderId, nil)
|
||||
waybills, err := dao.GetWaybills(db, orderId, vendors)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user