xiaoqiang 4 лет назад
Родитель
Сommit
cf0268fb7e

+ 2 - 0
src/main/java/org/springblade/common/config/BladeConfiguration.java

@@ -39,6 +39,8 @@ public class BladeConfiguration implements WebMvcConfigurer {
 		SecureRegistry secureRegistry = new SecureRegistry();
 		secureRegistry.setEnabled(true);
 		secureRegistry.excludePathPatterns("/blade-auth/**");
+		secureRegistry.excludePathPatterns("/app/**");
+		secureRegistry.excludePathPatterns("/sing_active/**");
 		secureRegistry.excludePathPatterns("/blade-system/menu/routes");
 		secureRegistry.excludePathPatterns("/blade-system/menu/auth-routes");
 		secureRegistry.excludePathPatterns("/blade-system/menu/top-menu");

+ 3 - 1
src/main/java/org/springblade/sing/active/service/impl/ActiveHelpServiceImpl.java

@@ -47,8 +47,10 @@ public class ActiveHelpServiceImpl extends BaseServiceImpl<ActiveHelpMapper, Act
     public ActiveHelp queryIndex(ActiveHelpVO activeHelpVO) {
 
 		Assert.notNull(activeHelpVO.getPhone(), "请添加手机号");
+		Assert.notNull(activeHelpVO.getActiveId(), "非法操作");
 
-		ActiveHelp activeHelp = baseMapper.selectOne(new LambdaQueryWrapper<ActiveHelp>().eq(ActiveHelp::getPhone,activeHelpVO.getPhone()));
+		ActiveHelp activeHelp = baseMapper.selectOne(new LambdaQueryWrapper<ActiveHelp>().eq(ActiveHelp::getPhone,
+			activeHelpVO.getPhone()).eq(ActiveHelp::getActiveId,activeHelpVO.getActiveId()));
 
 		if (activeHelp == null){
 			Long maxIndex = baseMapper.selectIndexMax();