增加验证码的开关的功能

This commit is contained in:
jishenghua
2025-09-21 16:31:03 +08:00
parent d3643c2a99
commit ca89353667
4 changed files with 49 additions and 18 deletions

View File

@@ -151,6 +151,26 @@ public class PlatformConfigController extends BaseController {
return res;
}
/**
* 获取是否开启验证码
* @param request
* @return
*/
@GetMapping(value = "/getPlatform/checkcodeFlag")
@ApiOperation(value = "获取是否开启验证码")
public String getPlatformCheckcodeFlag(HttpServletRequest request)throws Exception {
String res;
try {
String platformKey = "checkcode_flag";
PlatformConfig platformConfig = platformConfigService.getInfoByKey(platformKey);
res = platformConfig.getPlatformValue();
} catch(Exception e){
logger.error(e.getMessage(), e);
res = "#";
}
return res;
}
/**
* 根据platformKey更新platformValue
* @param object