From 7284f9ba23602cb3dafb7a2153a7e7ae250a375c Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Tue, 20 May 2025 11:37:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/application/api/controller/DeviceController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Server/application/api/controller/DeviceController.php b/Server/application/api/controller/DeviceController.php index 73935cae..287ecc14 100644 --- a/Server/application/api/controller/DeviceController.php +++ b/Server/application/api/controller/DeviceController.php @@ -22,8 +22,9 @@ class DeviceController extends BaseController */ public function getlist($data = [],$isInner = false,$isDel = 0) { + // 获取授权token - $authorization = trim($this->request->header('authorization', $this->authorization)); + $authorization = $this->authorization; if (empty($authorization)) { if($isInner){ return json_encode(['code'=>500,'msg'=>'缺少授权信息']);