From 0713ff1e6f5a30302a3121cd3734671134ef40e2 Mon Sep 17 00:00:00 2001 From: linfeng <2445465217@qq.com> Date: Thu, 30 Nov 2023 13:18:19 +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 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 941856c..4a48ecf 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 @@ -396,7 +396,9 @@ public class AppUserServiceImpl extends ServiceImpl i SystemEntity system = systemService.lambdaQuery() .eq(SystemEntity::getConfig, ConfigConstant.MINIAPP) .one(); - + if(system == null){ + throw new LinfengException("后台配置项不存在"); + } //小程序唯一标识 (在微信小程序管理后台获取) String appId = system.getValue(); //小程序的 app secret (在微信小程序管理后台获取)