From 181f05fb0fa94fc96b621cc4fd63044e34ab849c Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Sun, 29 Sep 2024 20:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E7=94=9F=E6=B4=BB=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=88=97=E8=A1=A8=E6=95=B0=E6=8D=AE=E6=9A=82=E6=97=B6?= =?UTF-8?q?=E5=8F=AA=E5=B1=95=E7=A4=BA=E4=B8=9C=E9=BE=99=E6=B1=87=E5=85=AC?= =?UTF-8?q?=E5=8F=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LocalStoreLogic.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index f9cad205..740c8b15 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -25,6 +25,7 @@ class LocalStoreLogic extends Logic } $count = $model->where('is_delete', 0) + ->where('lstore_id', 22) ->where($s1) ->where("store_state", 1) ->where("shopLogo is not null") @@ -39,7 +40,7 @@ class LocalStoreLogic extends Logic // $sql = "SELECT *, ST_Distance_Sphere(POINT(".$data['longitude'].",".$data['latitude']."),POINT(longitude, latitude)) AS distance // FROM ls_local_store where is_delete = 0 $s // ORDER BY distance limit $page,$size"; - $sql = "SELECT * FROM ls_local_store where is_delete = 0 and store_state = 1 and shopLogo is not null $s ORDER BY lstore_id asc limit " . $page . "," . $size; + $sql = "SELECT * FROM ls_local_store where lstore_id = 22 and is_delete = 0 and store_state = 1 and shopLogo is not null $s ORDER BY lstore_id asc limit " . $page . "," . $size; // var_dump($sql); $lists = Db::query($sql); foreach ($lists as $key => $value) {