Commit 07f84149 authored by 赵啸非's avatar 赵啸非

添加门户license验证接口

parent 2d4e91a3
...@@ -98,7 +98,7 @@ public class CipherController { ...@@ -98,7 +98,7 @@ public class CipherController {
try { try {
String targetFilePath = uploadService.saveFileUpload(file, prePath, null); String targetFilePath = uploadService.saveFileUpload(file, prePath, null);
String suffix = FileUtil.getSuffix(file.getOriginalFilename()); String suffix = FileUtil.getSuffix(file.getOriginalFilename());
if ("zip".equalsIgnoreCase(suffix)) { if (!"zip".equalsIgnoreCase(suffix)) {
throw new AppException("文件格式不正确,请上传zip格式的文件!"); throw new AppException("文件格式不正确,请上传zip格式的文件!");
} }
//解压到指定license目录 //解压到指定license目录
......
###
POST {{baseUrl}}/file/commonupload POST {{baseUrl}}/file/commonupload
Content-Type: multipart/form-data; boundary=WebAppBoundary Content-Type: multipart/form-data; boundary=WebAppBoundary
...@@ -46,7 +48,22 @@ POST {{baseUrl}}/resource/refreshUrl ...@@ -46,7 +48,22 @@ POST {{baseUrl}}/resource/refreshUrl
Accept: application/json Accept: application/json
###license check
GET {{baseUrl}}/cipher/check
Accept: application/json
### license upload
POST {{baseUrl}}/cipher/upload
Content-Type: multipart/form-data; boundary=WebAppBoundary
--WebAppBoundary
Content-Disposition: form-data; name="file"; filename="1.zip"
< ./1.zip
--WebAppBoundary--
###
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment