修改获取本地商家信息详情
This commit is contained in:
parent
d86673a589
commit
8ef4188d55
@ -19,11 +19,14 @@ class LocalStore extends Api
|
||||
|
||||
public function getLocalStore()
|
||||
{
|
||||
$id = $this->request->post('id');
|
||||
$lstore_id = $this->request->post('lstore_id');
|
||||
$user_id = $this->user_id;
|
||||
$result = Db::name("local_store")->where("user_id",$user_id)->find();
|
||||
if ($lstore_id) {
|
||||
$result = Db::name("local_store")->where(['lstore_id' => $lstore_id, "user_id" => $user_id])->find();
|
||||
} else {
|
||||
$result = Db::name("local_store")->where("user_id", $user_id)->select()->toArray();
|
||||
}
|
||||
$data['local'] = $result;
|
||||
// $data['local'] = [];
|
||||
$data['set_state'] = 1;
|
||||
return JsonServer::success('查询成功',$data);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user