From b47e4b0f2b15c1682f384c77c534679b9316684a Mon Sep 17 00:00:00 2001 From: linfeng <2445465217@qq.com> Date: Thu, 26 Oct 2023 10:41:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/admin/service/impl/AppUserServiceImpl.java | 4 +++- .../modules/app/controller/AppSystemConfigController.java | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java b/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java index 574fa32..30692a0 100644 --- a/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java +++ b/src/main/java/io/linfeng/modules/admin/service/impl/AppUserServiceImpl.java @@ -373,7 +373,9 @@ public class AppUserServiceImpl extends ServiceImpl i } private String getOpenId(String code){ - SystemEntity system = systemService.lambdaQuery().eq(SystemEntity::getConfig, "miniapp").one(); + SystemEntity system = systemService.lambdaQuery() + .eq(SystemEntity::getConfig, ConfigConstant.MINIAPP) + .one(); //小程序唯一标识 (在微信小程序管理后台获取) String appId = system.getValue(); diff --git a/src/main/java/io/linfeng/modules/app/controller/AppSystemConfigController.java b/src/main/java/io/linfeng/modules/app/controller/AppSystemConfigController.java index d4cfe05..54b58da 100644 --- a/src/main/java/io/linfeng/modules/app/controller/AppSystemConfigController.java +++ b/src/main/java/io/linfeng/modules/app/controller/AppSystemConfigController.java @@ -11,6 +11,7 @@ */ package io.linfeng.modules.app.controller; +import io.linfeng.common.utils.ConfigConstant; import io.linfeng.common.utils.R; import io.linfeng.modules.admin.entity.SystemEntity; import io.linfeng.modules.admin.service.SystemService; @@ -37,7 +38,7 @@ public class AppSystemConfigController { @GetMapping("/miniConfig") public R miniConfig(){ SystemEntity system = systemService.lambdaQuery() - .eq(SystemEntity::getConfig, "miniapp") + .eq(SystemEntity::getConfig, ConfigConstant.MINIAPP) .one(); return R.ok().put("logo",system.getIntro()); }