2025年04月23日 1.0.2 治超页面显示视频问题修复
parent
c2fa9616e3
commit
13921f75a3
@ -0,0 +1,25 @@
|
|||||||
|
package com.nmgs.common;
|
||||||
|
|
||||||
|
import com.nmgs.common.util.PathUtil;
|
||||||
|
import com.nmgs.common.util.VersionUtils;
|
||||||
|
import com.nmgs.zcdataquery.entity.Res;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author: shuguang
|
||||||
|
* @date: 2025年01月02日 16:47
|
||||||
|
* @description:
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
public class ProgramVersionController {
|
||||||
|
@PostMapping("/queryProgramVersion")
|
||||||
|
public Res queryProgramVersion() {
|
||||||
|
String versionPath = PathUtil.versionPath;
|
||||||
|
File resourceDir = new File(versionPath);
|
||||||
|
String version = VersionUtils.getVersionFileName(resourceDir);
|
||||||
|
return Res.success(version);
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,32 @@
|
|||||||
|
package com.nmgs.common.util;
|
||||||
|
|
||||||
|
import java.io.File;
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author: shuguang
|
||||||
|
* @date: 2025年01月02日 16:50
|
||||||
|
* @description: 获取当前程序更新版本号
|
||||||
|
*/
|
||||||
|
public class VersionUtils {
|
||||||
|
public static String getVersionFileName(File dir) {
|
||||||
|
String version="";
|
||||||
|
List<String> fileNames = new ArrayList<>();
|
||||||
|
if (dir == null || !dir.exists() || !dir.isDirectory()) {
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
File[] files = dir.listFiles();
|
||||||
|
if (files != null) {
|
||||||
|
for (File file : files) {
|
||||||
|
if (file.isFile() && file.getName().endsWith(".txt")) {
|
||||||
|
fileNames.add(file.getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!fileNames.isEmpty()) {
|
||||||
|
version = fileNames.get(0).replace(".txt", "");
|
||||||
|
}
|
||||||
|
return version;
|
||||||
|
}
|
||||||
|
}
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 232 KiB |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,31 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<!--<html lang="en" class="dark">-->
|
|
||||||
<html lang="en" class="light">
|
|
||||||
<head>
|
|
||||||
<meta charset="UTF-8"/>
|
|
||||||
|
|
||||||
<title></title>
|
|
||||||
<script type="module" crossorigin src="./assets/index.23d92d8a.js"></script>
|
|
||||||
<link rel="stylesheet" href="./assets/index.1971fb97.css">
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<div id="app">
|
|
||||||
<div class="loading">
|
|
||||||
<div class="loading-wrap">
|
|
||||||
<div class="loading-dots">
|
|
||||||
<span class="dot dot-spin">
|
|
||||||
<i></i>
|
|
||||||
<i></i>
|
|
||||||
<i></i>
|
|
||||||
<i></i>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<div class="loading-title">
|
|
||||||
正在缓冲...
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
Loading…
Reference in New Issue