|
@@ -135,9 +135,14 @@ public class WorkproController{
|
|
|
|
|
|
@GetMapping("/client/download")
|
|
|
@NeedlessCheckLogin
|
|
|
- public void download(HttpServletResponse response) throws IOException{
|
|
|
+ public void download(HttpServletRequest request,HttpServletResponse response) throws IOException{
|
|
|
+ String userAgent = request.getHeader("User-Agent");
|
|
|
String filePath = "/WEB-INF/lib/";
|
|
|
- String fileName = "WorkProClient_Setup_V2.3.09.1800-20240719.exe";
|
|
|
+ //默认统信uos系统
|
|
|
+ String fileName = "WorkPro.2.3.09_aarch64_20240925.deb";
|
|
|
+ if(userAgent.contains("Windows NT")){
|
|
|
+ fileName = "WorkProClient_Setup_V2.3.09.1800-20240719.exe";
|
|
|
+ }
|
|
|
String realPath = servletContext.getRealPath(filePath + fileName);
|
|
|
|
|
|
// 检查文件是否存在
|