From 81070e11bf7eec70b8fe447492ac99d99d12fd06 Mon Sep 17 00:00:00 2001 From: wangxinglong <2371974647@qq.com> Date: Thu, 27 Jan 2022 14:09:14 +0800 Subject: [PATCH] setter --- app/controller/api/Dictionary.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }