From c494cb3c4ac9a2f09b8d3ce200a73d91aa491935 Mon Sep 17 00:00:00 2001 From: wanghongjun <1445693971@qq,com> Date: Mon, 23 Sep 2024 16:27:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E7=BA=BF=E4=B8=8A=E7=89=88?= =?UTF-8?q?=E6=9C=ACPass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/api/controller/library/Pass.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/source/application/api/controller/library/Pass.php b/source/application/api/controller/library/Pass.php index 2bdc03f..dcceb9e 100644 --- a/source/application/api/controller/library/Pass.php +++ b/source/application/api/controller/library/Pass.php @@ -3,22 +3,13 @@ namespace app\api\controller\library; use app\api\controller\Controller; use app\common\dm\Dm; -use app\common\exception\BaseException; use app\common\logic\PassFlow; -use think\Session; class Pass extends Controller { protected $url = 'http://balib.cn:8999'; - protected function requestValiDate() - { - $token = $this->request->param('token'); - if (empty($token)) throw new BaseException(['msg' => '缺少token参数']); - if ($token != Session::pull('__token__')) throw new BaseException(['msg' => 'token验证失败']); - } - /** * 图书管数据接口 * @return array @@ -28,7 +19,6 @@ class Pass extends Controller */ public function allFlowTrends() { - $this->requestValiDate(); $data = PassFlow::allFlowTrends(); return $this->renderSuccess(compact('data')); } @@ -214,7 +204,6 @@ class Pass extends Controller */ public function getLibraryHours24List() { - $this->requestValiDate(); $data = PassFlow::getLibraryHours24List(); return $this->renderSuccess(compact('data')); } @@ -228,7 +217,6 @@ class Pass extends Controller */ public function getLibraryGroupHoursList() { - $this->requestValiDate(); $data = PassFlow::getLibraryGroupHoursList(); return $this->renderSuccess(compact('data')); } @@ -270,13 +258,12 @@ class Pass extends Controller return $this->renderSuccess(); } - /** + /** * 获取今日借阅办证数据 * @return array */ public function getLibraryLeaseData() { - $this->requestValiDate(); $data = PassFlow::getLibraryLeaseData(); return $this->renderSuccess(compact('data')); }