From 5308099c99097caa6f8ad3bf1a89c0bf451193ad Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 07 八月 2023 19:01:55 +0800
Subject: [PATCH] 修改端口号
---
ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
index 530885c..734e716 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/common/CommonController.java
@@ -75,11 +75,10 @@
String filePath = RuoYiConfig.getUploadPath();
// 涓婁紶骞惰繑鍥炴柊鏂囦欢鍚嶇О
String fileName = FileUploadUtils.upload(filePath, file);
-
- //鍥犱负serverConfig.getUrl()鎷垮埌鐨勭鍙e彿锛屼笉鏄痶omcat鐨勭鍙e彿锛岃繖閲岄渶瑕佽浆涓�涓�
String url1 = serverConfig.getUrl();
- url1 = url1.substring(0, url1.lastIndexOf(":")) + ":" + tomcatPort;
- log.info("url1鐨勫��:{} ,port鐨勫��:{}", url1, tomcatPort);
+ log.info("url1鐨勫�紀ld :{}", url1);
+ //杩欓噷鐨�8032涓嶆槸tomcat鐨勶紝鎵�浠ヨ杞垚tomcat鐨�
+ url1.replaceAll("8032", "8099");
String url = url1 + fileName;
AjaxResult ajax = AjaxResult.success();
ajax.put("fileName", fileName);
--
Gitblit v1.9.3