From ea93a4d57b2c696b1e5681a247d5286e731d6e58 Mon Sep 17 00:00:00 2001 From: yaooo <272523191@qq.com> Date: Mon, 20 Nov 2023 13:58:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/service/JwtTokenService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/service/JwtTokenService.php b/app/api/service/JwtTokenService.php index 521a3223..213963af 100644 --- a/app/api/service/JwtTokenService.php +++ b/app/api/service/JwtTokenService.php @@ -48,7 +48,7 @@ class JwtTokenService 'uid' => $id, 'phone' => $userinfo['phone'], 'avatar' => $userinfo['avatar'], - 'nickname' => $userinfo['nick_name'] + 'nickname' => $userinfo['nickname'] ]; $token = JWT::encode($params, env('app.app_key', '123456'), 'HS256'); $tokenInfo = [