From 3ce82679bb5f5ea50835c6b4c2a48f0982508271 Mon Sep 17 00:00:00 2001 From: wangxiaowei Date: Tue, 8 Oct 2024 15:00:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B7=BB=E5=8A=A0=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/LocalStore.php | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/app/api/controller/LocalStore.php b/app/api/controller/LocalStore.php index fca485e3..38f33f66 100755 --- a/app/api/controller/LocalStore.php +++ b/app/api/controller/LocalStore.php @@ -399,20 +399,9 @@ class LocalStore extends Api // 绑定用户列表 public function bindList() { - if($this->request->isGet()) { - $data = LocalStoreLogic::bindList($post); - return JsonServer::success('获取成功', $data); - }else{ - return JsonServer::error('请求方式错误'); - } - -// try { -// $post = $this->request->post(); -// LocalStoreLogic::bindList($post); -// return JsonServer::success('添加成功'); -// } catch (\Exception $e) { -// return JsonServer::error($e->getMessage()); -// } + $post = $this->request->post(); + $data = LocalStoreLogic::bindList($post); + return JsonServer::success('获取成功', $data); } // 绑定用户