1.获取距离
This commit is contained in:
parent
81d3310c57
commit
6788ab96ca
@ -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')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user