From de6480d3d9e27de19a6f5ef4f07b230297f2fe2a Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 13 Nov 2023 14:49:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/product/StoreSpu.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controller/api/store/product/StoreSpu.php b/app/controller/api/store/product/StoreSpu.php index 6075e153..61eab1ed 100644 --- a/app/controller/api/store/product/StoreSpu.php +++ b/app/controller/api/store/product/StoreSpu.php @@ -212,7 +212,7 @@ class StoreSpu extends BaseController POW( SIN( PI( ) * ( $lng- `long` ) / 360 ), 2 ) + COS( PI( ) * $lat / 180 ) * COS( `lat` * PI( ) / 180 ) * POW( SIN( PI( ) * ( $lat- `lat` ) / 360 ), 2 ) ) ) - ) ASC ")); + ) ASC "))->limit(50)->select(); $arr = []; foreach ($select as $k => $v) { $arr[] = $v['mer_id'];