From 9b8f3b1b2b0ffec7f35e4e61bbb31fc1193805d1 Mon Sep 17 00:00:00 2001 From: wong <106998207@qq.com> Date: Sat, 17 Jan 2026 15:58:57 +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/MessageController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Server/application/api/controller/MessageController.php b/Server/application/api/controller/MessageController.php index 34b79b5b..74b4196d 100644 --- a/Server/application/api/controller/MessageController.php +++ b/Server/application/api/controller/MessageController.php @@ -18,7 +18,7 @@ class MessageController extends BaseController public function getFriendsList($pageIndex = '',$pageSize = '',$isInner = false) { // 获取授权token - $authorization = trim($this->request->header('authorization', $this->authorization)); + $authorization = $this->authorization; if (empty($authorization)) { if($isInner){ return json_encode(['code'=>500,'msg'=>'缺少授权信息']); @@ -122,7 +122,7 @@ class MessageController extends BaseController public function getMessageList() { // 获取授权token - $authorization = trim($this->request->header('authorization', $this->authorization)); + $authorization = $this->authorization; if (empty($authorization)) { return errorJson('缺少授权信息'); } @@ -181,7 +181,7 @@ class MessageController extends BaseController public function getChatroomList($pageIndex = '',$pageSize = '',$isInner = false) { // 获取授权token - $authorization = trim($this->request->header('authorization', $this->authorization)); + $authorization = $this->authorization; if (empty($authorization)) { if($isInner){ return json_encode(['code'=>500,'msg'=>'缺少授权信息']); @@ -287,7 +287,7 @@ class MessageController extends BaseController public function getChatroomMessages() { // 获取授权token - $authorization = trim($this->request->header('authorization', $this->authorization)); + $authorization = $this->authorization; if (empty($authorization)) { return errorJson('缺少授权信息'); }