From b360bb74852884717583576c24a95ca0e674a774 Mon Sep 17 00:00:00 2001 From: TinyAnts Date: Wed, 11 Jan 2023 10:19:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9PC=E7=AB=AF=E6=89=AB=E7=A0=81?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/mdd/front/service/impl/LoginServiceImpl.java | 2 ++ sql/install.sql | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/like-front/src/main/java/com/mdd/front/service/impl/LoginServiceImpl.java b/server/like-front/src/main/java/com/mdd/front/service/impl/LoginServiceImpl.java index 3b911c92..c2e36e69 100644 --- a/server/like-front/src/main/java/com/mdd/front/service/impl/LoginServiceImpl.java +++ b/server/like-front/src/main/java/com/mdd/front/service/impl/LoginServiceImpl.java @@ -354,6 +354,8 @@ public class LoginServiceImpl implements ILoginService { * @return LoginTokenVo */ private LoginTokenVo makeLoginToken(Integer userId, String mobile) { + mobile = StringUtils.isNull(mobile) ? "" : mobile; + String token = ToolsUtils.makeToken(); int tokenValidTime = Integer.parseInt(YmlUtils.get("like.token-valid-time")); RedisUtils.set(FrontConfig.frontendTokenKey+token, userId, tokenValidTime); diff --git a/sql/install.sql b/sql/install.sql index 4e5d7b11..fdf3b5aa 100644 --- a/sql/install.sql +++ b/sql/install.sql @@ -562,8 +562,6 @@ INSERT INTO `la_system_config` VALUES (41, 'mp_channel', 'primaryId', '', 166062 INSERT INTO `la_system_config` VALUES (42, 'mp_channel', 'appId', '', 1660620367, 1662551403); INSERT INTO `la_system_config` VALUES (43, 'mp_channel', 'appSecret', '', 1660620367, 1662551403); INSERT INTO `la_system_config` VALUES (44, 'mp_channel', 'qrCode', '', 1660620367, 1662551403); -INSERT INTO `la_system_config` VALUES (50, 'wx_channel', 'appId', '', 1660620367, 1660620367); -INSERT INTO `la_system_config` VALUES (51, 'wx_channel', 'appSecret', '', 1660620367, 1660620367); INSERT INTO `la_system_config` VALUES (55, 'oa_channel', 'name', '', 1660620367, 1662551337); INSERT INTO `la_system_config` VALUES (56, 'oa_channel', 'primaryId', ' ', 1660620367, 1662551337); INSERT INTO `la_system_config` VALUES (57, 'oa_channel', 'qrCode', '', 1662551337, 1662551337);