增加演示环境校验
This commit is contained in:
parent
d0478a8fc4
commit
5e5a2f5afb
|
|
@ -163,7 +163,7 @@ public class GenController {
|
||||||
@GetMapping("/downloadCode")
|
@GetMapping("/downloadCode")
|
||||||
public void downloadCode(HttpServletResponse response, String tables) throws IOException {
|
public void downloadCode(HttpServletResponse response, String tables) throws IOException {
|
||||||
String production = YmlUtil.get("like.production");
|
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("抱歉,演示环境不允许操作!");
|
throw new OperateException("抱歉,演示环境不允许操作!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue