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')