master
wangxinglong 2022-01-27 14:09:14 +08:00
parent 2182842332
commit 81070e11bf
1 changed files with 1 additions and 1 deletions

View File

@ -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";
}