前缀修改
This commit is contained in:
@@ -2514,6 +2514,7 @@ func GetStoreListByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDi
|
|||||||
var storeList2 []*Store4User
|
var storeList2 []*Store4User
|
||||||
for _, v := range storeList1 {
|
for _, v := range storeList1 {
|
||||||
distance := jxutils.Point2StoreDistance(lng, lat, v.Lng, v.Lat, v.DeliveryRangeType, v.DeliveryRange)
|
distance := jxutils.Point2StoreDistance(lng, lat, v.Lng, v.Lat, v.DeliveryRangeType, v.DeliveryRange)
|
||||||
|
fmt.Println("test11111", distance)
|
||||||
if distance > 0 || (lng == jxutils.IntCoordinate2Standard(v.Lng) && lat == jxutils.IntCoordinate2Standard(v.Lat)) {
|
if distance > 0 || (lng == jxutils.IntCoordinate2Standard(v.Lng) && lat == jxutils.IntCoordinate2Standard(v.Lat)) {
|
||||||
v.Distance = distance
|
v.Distance = distance
|
||||||
storeList2 = append(storeList2, v)
|
storeList2 = append(storeList2, v)
|
||||||
|
|||||||
Reference in New Issue
Block a user