From f22963601e69befb7275f0d12c0b4352d0860d0a Mon Sep 17 00:00:00 2001
From: zhaojs <349234519@qq.com>
Date: 星期日, 23 七月 2023 14:01:16 +0800
Subject: [PATCH] no message

---
 application/common/controller/Api.php |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/application/common/controller/Api.php b/application/common/controller/Api.php
index 39dbe02..6aee7d9 100644
--- a/application/common/controller/Api.php
+++ b/application/common/controller/Api.php
@@ -115,6 +115,14 @@
         // 妫�娴嬫槸鍚﹂渶瑕侀獙璇佺櫥褰�
         if (!$this->auth->match($this->noNeedLogin)) {
             //鍒濆鍖�
+            if(empty($token))
+            {//token涓虹┖锛屽垽鏂璼essionkey
+                $sessionkey= $this->request->server('HTTP_TOKEN', $this->request->request('dfgsessionkey', \think\Cookie::get('dfgsessionkey')));
+                if(!empty($sessionkey))
+                {//鏍¢獙sessionkey
+
+                }
+            }
             $this->auth->init($token);
             //妫�娴嬫槸鍚︾櫥褰�
             if (!$this->auth->isLogin()) {

--
Gitblit v1.9.3