mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-08 08:07:46 +08:00
增加演示环境校验
This commit is contained in:
@@ -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("抱歉,演示环境不允许操作!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user