lenovodn 2 rokov pred
rodič
commit
ce674c3253

+ 1 - 0
jeecg-boot-base-core/src/main/java/org/jeecg/config/shiro/ShiroConfig.java

@@ -114,6 +114,7 @@ public class ShiroConfig {
         filterChainDefinitionMap.put("/**/*.ttf", "anon");
         filterChainDefinitionMap.put("/**/*.woff", "anon");
         filterChainDefinitionMap.put("/**/*.woff2", "anon");
+         filterChainDefinitionMap.put("/**/*.json", "anon");
 
         filterChainDefinitionMap.put("/druid/**", "anon");
         filterChainDefinitionMap.put("/swagger-ui.html", "anon");

+ 7 - 5
jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/medical/controller/NwVersionController.java

@@ -67,7 +67,8 @@ public class NwVersionController extends JeecgController<NwVersion, INwVersionSe
     private INwVersionService nwVersionService;
     @Value(value = "${jeecg.path.upload}")
     private String uploadpath;
-
+    @Value("${server.path}")
+    private String path;
     /**
      * 分页列表查询
      *
@@ -192,19 +193,20 @@ public class NwVersionController extends JeecgController<NwVersion, INwVersionSe
     public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
         return super.importExcel(request, response, NwVersion.class);
     }
-
+    @ApiOperation(value = "nw更新-安装包", notes = "nw更新-安装包")
     @GetMapping(value = "/downLoadPackage")
     public Result<String> downLoadPackage(HttpServletRequest request, HttpServletResponse response) {
-
         NwVersion one = nwVersionService.lambdaQuery().orderByDesc(NwVersion::getCreateTime).last("limit 1").one();
-        return Result.OK(one.getPath());
+        return Result.OK(path+one.getPath());
     }
 
 
+    @ApiOperation(value = "nw更新-JSON文件", notes = "nw更新-JSON文件")
+
     @GetMapping(value = "/downLoadJson")
     public Result<String> getJson(HttpServletRequest request, HttpServletResponse response) {
         NwVersion one = nwVersionService.lambdaQuery().orderByDesc(NwVersion::getCreateTime).last("limit 1").one();
-        return Result.OK(one.getJsonPath());
+        return Result.OK(path+one.getJsonPath());
 
     }
 }

+ 1 - 1
jeecg-module-system/jeecg-system-start/src/main/resources/application-dev.yml

@@ -12,7 +12,7 @@ server:
     enabled: true
     min-response-size: 1024
     mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
-
+  path: http://localhost:8080
 management:
   endpoints:
     web:

+ 1 - 1
jeecg-module-system/jeecg-system-start/src/main/resources/application-prod.yml

@@ -12,7 +12,7 @@ server:
     enabled: true
     min-response-size: 1024
     mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
-
+  path: https://medical.xmyuedian.com
 management:
   endpoints:
     web: