From f7b58b69b415e0cf73798264ebb7c14a4355712e Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Mon, 30 Sep 2024 09:24:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=9C=8D=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E7=94=9F=E6=B4=BB=E9=A6=96=E9=A1=B5=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=95=B0=E6=8D=AE=E6=9A=82=E6=97=B6=E5=8F=AA=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E4=B8=9C=E9=BE=99=E6=B1=87=E5=85=AC=E5=8F=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LocalStoreLogic.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index dc1382a0..5fcbbc63 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -25,9 +25,9 @@ class LocalStoreLogic extends Logic $s = "and address like '%" . $data['c_name'] . "%'"; } - if ($data['c_name'] == '嘉兴市') { - $city_where[] = ['lstore_id', '=', 22]; - } +// if ($data['c_name'] == '嘉兴市') { +// $city_where[] = ['lstore_id', '=', 22]; +// } } $count = $model->where('is_delete', 0) @@ -47,11 +47,11 @@ class LocalStoreLogic extends Logic // FROM ls_local_store where is_delete = 0 $s // ORDER BY distance limit $page,$size"; - if (isset($data['c_name']) && $data['c_name'] == '嘉兴市') { - $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; - } else { +// if (isset($data['c_name']) && $data['c_name'] == '嘉兴市') { +// $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; +// } else { $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; - } +// } // var_dump($sql); $lists = Db::query($sql);