增加演示环境校验

This commit is contained in:
TinyAnts 2022-08-17 18:28:45 +08:00
parent d0478a8fc4
commit 5e5a2f5afb
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ public class GenController {
@GetMapping("/downloadCode")
public void downloadCode(HttpServletResponse response, String tables) throws IOException {
String production = YmlUtil.get("like.production");
if (StringUtil.isNull(production) || StringUtil.isEmpty(production) || production.equals("true")) {
if (StringUtil.isNotEmpty(production) && production.equals("true")) {
throw new OperateException("抱歉,演示环境不允许操作!");
}