From 9b559ca1bc77045387863cc35c541f9442167d64 Mon Sep 17 00:00:00 2001 From: "haoxianrui@" <1490493387@qq.com> Date: Sat, 5 Sep 2020 12:24:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/youlai/auth/controller/AuthController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youlai-auth/src/main/java/com/youlai/auth/controller/AuthController.java b/youlai-auth/src/main/java/com/youlai/auth/controller/AuthController.java index 7db0fceda..477de78c9 100644 --- a/youlai-auth/src/main/java/com/youlai/auth/controller/AuthController.java +++ b/youlai-auth/src/main/java/com/youlai/auth/controller/AuthController.java @@ -3,6 +3,7 @@ package com.youlai.auth.controller; import com.youlai.admin.api.dto.UserDTO; import com.youlai.admin.api.service.UmsAdminService; import com.youlai.auth.domain.Oauth2Token; +import com.youlai.common.auth.constant.AuthConstant; import com.youlai.common.result.Result; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; @@ -46,7 +47,7 @@ public class AuthController { .token(oAuth2AccessToken.getValue()) .refreshToken(oAuth2AccessToken.getRefreshToken().getValue()) .expiresIn(oAuth2AccessToken.getExpiresIn()) - .tokenHead("Bearer ") + .tokenHead(AuthConstant.JWT_TOKEN_PREFIX) .build(); return Result.success(oauth2Token); }