From 672d38560d56b00b535e37a5497d29b05e3abf40 Mon Sep 17 00:00:00 2001 From: tk Date: Thu, 20 Jun 2024 20:27:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=B1=BB=09=E5=9E=8B=E3=80=91?= =?UTF-8?q?=EF=BC=9Afix=20=E3=80=90=E4=B8=BB=09=E9=A2=98=E3=80=91=EF=BC=9A?= =?UTF-8?q?makeToken=E5=87=BD=E6=95=B0=20=E5=8F=82=E6=95=B0=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9=20=E3=80=90=E6=8F=8F=09=E8=BF=B0?= =?UTF-8?q?=E3=80=91=EF=BC=9A=20=09[=E5=8E=9F=E5=9B=A0]=EF=BC=9A=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E6=A0=BC=E5=BC=8F=E4=BF=AE=E6=94=B9=E5=AF=BC=E8=87=B4?= =?UTF-8?q?bug=20=09[=E8=BF=87=E7=A8=8B]=EF=BC=9A=E5=B7=B2=E6=95=B0?= =?UTF-8?q?=E7=BB=84=E5=BD=A2=E5=BC=8F=E4=BC=A0=E5=8F=82=20=E9=94=AE?= =?UTF-8?q?=E5=80=BC=E5=AF=B9=E6=95=B0=E6=8D=AE=20=09[=E5=BD=B1=E5=93=8D]?= =?UTF-8?q?=EF=BC=9A=20=E3=80=90=E7=BB=93=09=E6=9D=9F=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # 类型 包含: # feat:新功能(feature) # fix:修补bug # docs:文档(documentation) # style: 格式(不影响代码运行的变动) # refactor:重构(即不是新增功能,也不是修改bug的代码变动) # test:增加测试 # chore:构建过程或辅助工具的变动 --- FlyCube/Api/Controller/LoginController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FlyCube/Api/Controller/LoginController.class.php b/FlyCube/Api/Controller/LoginController.class.php index 610fc28..36220a8 100644 --- a/FlyCube/Api/Controller/LoginController.class.php +++ b/FlyCube/Api/Controller/LoginController.class.php @@ -43,7 +43,7 @@ class LoginController extends PublicController exit(); } // 用户已经注册 分发token等用户信息给前端 - $token = $this->makeToken($getAuth['openid'], $getAuth['session_key']); + $token = $this->makeToken(array('openid' => $getAuth['openid'], 'session_key' => $getAuth['session_key'])); if ($user['tel'] != null) { $user['tel'] = $this->maskPhoneNumber($user['tel']); //用户已经填写过 电话的话 给前端返回 截取替换* 之后的电话号 }