From 2e63128f43b80aec270582a0cabec3f4dc0b8a1b Mon Sep 17 00:00:00 2001 From: houjishuang <46269784@qq.com> Date: Fri, 20 Jun 2025 16:03:35 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E4=BB=A3=E7=A0=81=E8=BF=81?= =?UTF-8?q?=E7=A7=BBjianquan=E6=8E=A5=E5=8F=A3=E9=89=B4=E6=9D=83dengchu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/BaseUserServiceImpl.java | 20 +++++++++---------- .../controller/UserInfoController.java | 5 +++++ src/main/resources/application-master.yml | 1 + 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/chinaunicom/mall/ebtp/login/service/impl/BaseUserServiceImpl.java b/src/main/java/com/chinaunicom/mall/ebtp/login/service/impl/BaseUserServiceImpl.java index 7287a8a..c495c9a 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/login/service/impl/BaseUserServiceImpl.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/login/service/impl/BaseUserServiceImpl.java @@ -111,16 +111,16 @@ public class BaseUserServiceImpl extends BaseServiceImpl0){ BaseUserToken tokenObj = tokenList.get(0); securityEntity = JSON.parseObject(tokenObj.getUserObject(),SecurityEntity.class); + tokenObj.setValidTime(LocalDateTime.now().plusMinutes(Long.valueOf(valid_time_limit))); + + this.baseUserTokenService.saveOrUpdate(tokenObj); } //Object o = unifastOAuthBdClient.get(token); }catch (Exception e){ diff --git a/src/main/resources/application-master.yml b/src/main/resources/application-master.yml index 8440954..4c683ee 100644 --- a/src/main/resources/application-master.yml +++ b/src/main/resources/application-master.yml @@ -196,6 +196,7 @@ allow: - ^GET\./?v1/userinfo/getList/user$ - ^GET\./?v1/userinfo/oauth/check_token$ - ^GET\./?outer/v1.0/auth/.*$ + - ^GET\./?v1/login/getCaptcha$ #feign调用 mall: