优化代码

This commit is contained in:
linfeng 2023-11-30 13:18:19 +08:00
parent 03c64af20d
commit 0713ff1e6f

View File

@ -396,7 +396,9 @@ public class AppUserServiceImpl extends ServiceImpl<AppUserDao, AppUserEntity> i
SystemEntity system = systemService.lambdaQuery()
.eq(SystemEntity::getConfig, ConfigConstant.MINIAPP)
.one();
if(system == null){
throw new LinfengException("后台配置项不存在");
}
//小程序唯一标识 (在微信小程序管理后台获取)
String appId = system.getValue();
//小程序的 app secret (在微信小程序管理后台获取)