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()); }