From 6788ab96cac2f706398ff6e42515280d643cefdc Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Tue, 13 Aug 2024 10:22:57 +0800 Subject: [PATCH] =?UTF-8?q?1.=E8=8E=B7=E5=8F=96=E8=B7=9D=E7=A6=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/LocalStore.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/controller/LocalStore.php b/app/api/controller/LocalStore.php index e7813d57..fcbf906c 100755 --- a/app/api/controller/LocalStore.php +++ b/app/api/controller/LocalStore.php @@ -217,9 +217,10 @@ class LocalStore extends Api $id = $this->request->post('id'); $latitude = $this->request->post('latitude',0); $longitude = $this->request->post('longitude',0); + $type = $this->request->post('type',0); $user_id = $this->user_id; $u = ""; - if($latitude == 0){ + if($type == 0){ $u = "user_id = $user_id"; } $result = Db::name('local_store')