diff --git a/app/controller/api/Dictionary.php b/app/controller/api/Dictionary.php index 2c1d09e..b128669 100644 --- a/app/controller/api/Dictionary.php +++ b/app/controller/api/Dictionary.php @@ -54,7 +54,7 @@ class Dictionary extends Base $order = []; if ($lng && $lat) { - $field[] = "abs( (IFNULL(lat,0) - {$lng}) * (IFNULL(lng,0) - {$lat}) ) as square"; + $field[] = "abs( (IFNULL(lat,0) - {$lat}) * (IFNULL(lng,0) - {$lng}) ) as square"; $order["square"] = "asc"; }