diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..2be8071 Binary files /dev/null and b/.DS_Store differ diff --git a/Dockerfile b/Dockerfile index 61c9a64..3488ac4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,10 @@ RUN --mount=type=cache,target=/root/.m2 mvn package -DskipTests=true clean insta #FROM bellsoft/liberica-openjdk-debian:17 -FROM registry.cn-shanghai.aliyuncs.com/physical/liberica-openjdk-debian:17 +#FROM registry.cn-shanghai.aliyuncs.com/physical/liberica-openjdk-debian:17 + +#FROM bellsoft/liberica-openjdk-alpine:17 +FROM registry.cn-shanghai.aliyuncs.com/physical/liberica-openjdk-alpine:17 RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime WORKDIR /app diff --git a/physical-base-core/.DS_Store b/physical-base-core/.DS_Store new file mode 100644 index 0000000..5c1acfb Binary files /dev/null and b/physical-base-core/.DS_Store differ diff --git a/physical-launcher/.DS_Store b/physical-launcher/.DS_Store new file mode 100644 index 0000000..8b14dc4 Binary files /dev/null and b/physical-launcher/.DS_Store differ diff --git a/physical-launcher/src/.DS_Store b/physical-launcher/src/.DS_Store new file mode 100644 index 0000000..386ede9 Binary files /dev/null and b/physical-launcher/src/.DS_Store differ diff --git a/physical-launcher/src/main/resources/application-dev.yml b/physical-launcher/src/main/resources/application-dev.yml index 68ab513..87ef459 100644 --- a/physical-launcher/src/main/resources/application-dev.yml +++ b/physical-launcher/src/main/resources/application-dev.yml @@ -166,8 +166,8 @@ spring: slow-sql-millis: 5000 datasource: master: - url: jdbc:mysql://127.0.0.1:3306/physical-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai -# url: jdbc:mysql://192.168.50.100:23306/physical-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai +# url: jdbc:mysql://127.0.0.1:3306/physical-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai + url: jdbc:mysql://47.102.126.67:23306/physical-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai username: root password: 123456 driver-class-name: com.mysql.cj.jdbc.Driver @@ -230,7 +230,7 @@ jeecg: #webapp文件路径 webapp: /opt/webapp shiro: - excludeUrls: /library/documentLibrary/home,/database/experimentDoc/**,/sys/common/upload,/sys/common/download,/sys/user/**,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/** + excludeUrls: /library/documentLibrary/home,/database/experimentDoc/**,/sys/common/upload,/sys/common/batchUpload,/sys/common/download,/sys/user/**,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/** #阿里云oss存储和大鱼短信秘钥配置 oss: accessKey: ?? @@ -239,8 +239,8 @@ jeecg: bucketName: jeecgdev # minio文件上传 minio: - minio_url: http://192.168.50.100:29000 - minio_public_url: http://58.215.212.230:8005/oss/ + minio_url: http://47.102.126.67:29000 + minio_public_url: http://47.102.126.67/oss/ minio_name: root minio_pass: 12345678 bucketName: physical @@ -276,9 +276,9 @@ knife4j: #开启生产环境屏蔽 production: false basic: - enable: false - username: jeecg - password: jeecg1314 + enable: true + username: admin + password: admin!@#123 #第三方登录 justauth: enabled: false diff --git a/physical-launcher/src/main/resources/application-prod.yml b/physical-launcher/src/main/resources/application-prod.yml index dc7ac49..49dcbc5 100644 --- a/physical-launcher/src/main/resources/application-prod.yml +++ b/physical-launcher/src/main/resources/application-prod.yml @@ -50,8 +50,8 @@ spring: clean-disabled: true servlet: multipart: - max-file-size: 10MB - max-request-size: 10MB + max-file-size: 200MB + max-request-size: 200MB mail: host: smtp.163.com username: jeecgos@163.com @@ -231,7 +231,7 @@ jeecg: #webapp文件路径 webapp: /opt/jeecg-boot/webapp shiro: - excludeUrls: /sys/common/upload,/sys/common/download,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/api/sys/common/**,/sys/common/** + excludeUrls: /sys/common/upload,/sys/common/batchUpload,/sys/common/download,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/api/sys/common/**,/sys/common/** #阿里云oss存储和大鱼短信秘钥配置 oss: accessKey: ?? diff --git a/physical-launcher/src/main/resources/application-release.yml b/physical-launcher/src/main/resources/application-release.yml index d9b94f6..561b52d 100644 --- a/physical-launcher/src/main/resources/application-release.yml +++ b/physical-launcher/src/main/resources/application-release.yml @@ -50,8 +50,8 @@ spring: clean-disabled: true servlet: multipart: - max-file-size: 10MB - max-request-size: 10MB + max-file-size: 200MB + max-request-size: 200MB mail: host: smtp.163.com username: jeecgos@163.com @@ -231,7 +231,7 @@ jeecg: #webapp文件路径 webapp: /opt/jeecg-boot/webapp shiro: - excludeUrls: /sys/common/upload,/sys/common/download,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/api/sys/common/**,/sys/common/** + excludeUrls: /sys/common/upload,/sys/common/batchUpload,/sys/common/download,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/api/sys/common/**,/sys/common/** #阿里云oss存储和大鱼短信秘钥配置 oss: accessKey: ?? diff --git a/physical-launcher/src/main/resources/application-test.yml b/physical-launcher/src/main/resources/application-test.yml index f3308d9..203be02 100644 --- a/physical-launcher/src/main/resources/application-test.yml +++ b/physical-launcher/src/main/resources/application-test.yml @@ -50,8 +50,8 @@ spring: clean-disabled: true servlet: multipart: - max-file-size: 10MB - max-request-size: 10MB + max-file-size: 200MB + max-request-size: 200MB mail: host: smtp.163.com username: jeecgos@163.com @@ -231,7 +231,7 @@ jeecg: #webapp文件路径 webapp: /opt/jeecg-boot/webapp shiro: - excludeUrls: /sys/common/upload,/sys/common/download,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/api/sys/common/**,/sys/common/** + excludeUrls: /sys/common/upload,/sys/common/batchUpload,/sys/common/download,/test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/bigscreen/category/**,/bigscreen/visual/**,/bigscreen/map/**,/jmreport/bigscreen2/**,/api/getUserInfo,/api/sys/common/**,/sys/common/** #阿里云oss存储和大鱼短信秘钥配置 oss: accessKey: ?? diff --git a/physical-module-system/.DS_Store b/physical-module-system/.DS_Store new file mode 100644 index 0000000..40815ae Binary files /dev/null and b/physical-module-system/.DS_Store differ diff --git a/physical-module-system/physical-system-biz/.DS_Store b/physical-module-system/physical-system-biz/.DS_Store new file mode 100644 index 0000000..0df2e48 Binary files /dev/null and b/physical-module-system/physical-system-biz/.DS_Store differ diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/system/controller/CommonController.java b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/system/controller/CommonController.java index 832143e..239d7a7 100644 --- a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/system/controller/CommonController.java +++ b/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/system/controller/CommonController.java @@ -24,6 +24,8 @@ import org.springframework.web.servlet.ModelAndView; import java.io.*; import java.net.URLDecoder; +import java.util.ArrayList; +import java.util.List; /** *

@@ -85,6 +87,42 @@ public class CommonController { response.sendRedirect(objectUrl); } + @PostMapping("/batchUpload") + public Result uploadFiles(@RequestParam("files") MultipartFile[] files, MultipartHttpServletRequest request) { + Result> result = new Result<>(); + String savePath = ""; + String bizPath = request.getParameter("biz"); + + //LOWCOD-2580 sys/common/upload接口存在任意文件上传漏洞 + if (oConvertUtils.isNotEmpty(bizPath)) { + if (bizPath.contains(SymbolConstant.SPOT_SINGLE_SLASH) || bizPath.contains(SymbolConstant.SPOT_DOUBLE_BACKSLASH)) { + throw new JeecgBootException("上传目录bizPath,格式非法!"); + } + } + List ossFileList = new ArrayList<>(); + for (MultipartFile file : files) { + try { + savePath = CommonUtils.upload(file, bizPath, uploadType); + OssFile ossFile = new OssFile(); + ossFile.setFileName(file.getOriginalFilename()); + ossFile.setUrl(savePath); + ossFileService.save(ossFile); + ossFileList.add(ossFile); + } catch (Exception e) { + return result; + } + } + result.setResult(ossFileList); + if (oConvertUtils.isNotEmpty(ossFileList)) { + result.setMessage("上传成功!"); + result.setSuccess(true); + } else { + result.setMessage("上传失败!"); + result.setSuccess(false); + } + return result; + } + /** * 文件上传统一方法 * diff --git a/scripts/.DS_Store b/scripts/.DS_Store new file mode 100644 index 0000000..6113da6 Binary files /dev/null and b/scripts/.DS_Store differ diff --git a/scripts/__pycache__/common.cpython-313.pyc b/scripts/__pycache__/common.cpython-313.pyc new file mode 100644 index 0000000..6d48e40 Binary files /dev/null and b/scripts/__pycache__/common.cpython-313.pyc differ diff --git a/scripts/__pycache__/esa.cpython-311.pyc b/scripts/__pycache__/esa.cpython-311.pyc new file mode 100644 index 0000000..49b4ab6 Binary files /dev/null and b/scripts/__pycache__/esa.cpython-311.pyc differ diff --git a/scripts/__pycache__/esa.cpython-313.pyc b/scripts/__pycache__/esa.cpython-313.pyc new file mode 100644 index 0000000..bccbeb4 Binary files /dev/null and b/scripts/__pycache__/esa.cpython-313.pyc differ diff --git a/scripts/__pycache__/nasa1.cpython-311.pyc b/scripts/__pycache__/nasa1.cpython-311.pyc new file mode 100644 index 0000000..d4ca313 Binary files /dev/null and b/scripts/__pycache__/nasa1.cpython-311.pyc differ diff --git a/scripts/__pycache__/nasa1.cpython-313.pyc b/scripts/__pycache__/nasa1.cpython-313.pyc new file mode 100644 index 0000000..5c49b5a Binary files /dev/null and b/scripts/__pycache__/nasa1.cpython-313.pyc differ diff --git a/scripts/__pycache__/nasa2.cpython-311.pyc b/scripts/__pycache__/nasa2.cpython-311.pyc new file mode 100644 index 0000000..1778de3 Binary files /dev/null and b/scripts/__pycache__/nasa2.cpython-311.pyc differ diff --git a/scripts/__pycache__/nasa2.cpython-313.pyc b/scripts/__pycache__/nasa2.cpython-313.pyc new file mode 100644 index 0000000..3774ebb Binary files /dev/null and b/scripts/__pycache__/nasa2.cpython-313.pyc differ diff --git a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/.DS_Store b/src/.DS_Store similarity index 89% rename from physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/.DS_Store rename to src/.DS_Store index 0402f10..c073da3 100644 Binary files a/physical-module-system/physical-system-biz/src/main/java/org/jeecg/modules/.DS_Store and b/src/.DS_Store differ diff --git a/src/main/.DS_Store b/src/main/.DS_Store new file mode 100644 index 0000000..8fa3410 Binary files /dev/null and b/src/main/.DS_Store differ