Browse Source

服务器地址更新

纪新园 5 months ago
parent
commit
2b52116731

+ 2 - 2
blade-common/src/main/java/org/springblade/common/constant/LauncherConstant.java

@@ -74,12 +74,12 @@ public interface LauncherConstant {
 	/**
 	 * nacos prod 地址
 	 */
-	String NACOS_PROD_ADDR = "139.9.191.155:8848";
+	String NACOS_PROD_ADDR = "113.44.105.66:8848";
 
 	/**
 	 * nacos test 地址
 	 */
-	String NACOS_TEST_ADDR = "139.9.191.155:8848";
+	String NACOS_TEST_ADDR = "113.44.105.66:8848";
 
 	/**
 	 * nacos dev 用戶名

+ 6 - 6
blade-ops/blade-resource/src/main/java/org/springblade/resource/endpoint/OssEndpoint.java

@@ -181,7 +181,7 @@ public class OssEndpoint {
 		}
 		String link = bladeFile.getLink();
 		System.err.println("link:" + link);
-		//String replace = link.replace("http://139.9.191.155:9000/", "https://trade.tubaosoft.com/file/");
+		//String replace = link.replace("http://113.44.105.66:9000/", "https://trade.tubaosoft.com/file/");
 		String replace = "";
 		if (ObjectUtils.isNotNull(status) && "获取数据失败".equals(status)) {
 			if (ObjectUtils.isNotNull(replaceUrl)&& "获取数据失败".equals(replaceUrl)){
@@ -190,7 +190,7 @@ public class OssEndpoint {
 				replace = link.replace(status + ":9000/", status + "/file/");
 			}
 		} else {
-			replace = link.replace("http://139.9.191.155:9000/", "http://139.9.191.155/file/");
+			replace = link.replace("http://113.44.105.66:9000/", "http://113.44.105.66/file/");
 		}
 		System.err.println("replace:" + replace);
 		bladeFile.setLink(replace);
@@ -233,7 +233,7 @@ public class OssEndpoint {
 			bladeFile = ossBuilder.template().putFile(file.getOriginalFilename(), file.getInputStream());
 		}
 		String link = bladeFile.getLink();
-		//String replace = link.replace("http://139.9.191.155:9000/", "https://trade.tubaosoft.com/file/");
+		//String replace = link.replace("http://113.44.105.66:9000/", "https://trade.tubaosoft.com/file/");
 		String replace = "";
 		if (ObjectUtils.isNotNull(status) && "获取数据失败".equals(status)) {
 			if (ObjectUtils.isNotNull(replaceUrl)&& "获取数据失败".equals(replaceUrl)){
@@ -242,7 +242,7 @@ public class OssEndpoint {
 				replace = link.replace(status + ":9000/", status + "/file/");
 			}
 		} else {
-			replace = link.replace("http://139.9.191.155:9000/", "http://139.9.191.155/file/");
+			replace = link.replace("http://113.44.105.66:9000/", "http://113.44.105.66/file/");
 		}
 		System.err.println("replace:" + replace);
 		bladeFile.setLink(replace);
@@ -272,7 +272,7 @@ public class OssEndpoint {
 		if (ObjectUtils.isNotNull(status)) {
 			replace = link.replace(status + ":9000/", status + "/file/");
 		} else {
-			replace = link.replace("http://139.9.191.155:9000/", "https://trade.re-king.cn/file/");
+			replace = link.replace("http://113.44.105.66:9000/", "https://trade.re-king.cn/file/");
 		}
 		System.out.println("replace======>" + replace);
 		bladeFile.setLink(replace);
@@ -295,7 +295,7 @@ public class OssEndpoint {
 		if (ObjectUtils.isNotNull(status)) {
 			replace = link.replace(status + ":9000/", status + "/file/");
 		} else {
-			replace = link.replace("http://139.9.191.155:9000/", "http://139.9.191.155/file/");
+			replace = link.replace("http://113.44.105.66:9000/", "http://113.44.105.66/file/");
 		}
 		bladeFile.setLink(replace);
 		return R.data(bladeFile);

+ 2 - 2
blade-ops/blade-resource/src/main/java/org/springblade/resource/feign/OssClient.java

@@ -82,7 +82,7 @@ public class OssClient implements IOssClient {
 		}
 		String link = bladeFile.getLink();
 		System.err.println("link:" + link);
-		//String replace = link.replace("http://139.9.191.155:9000/", "https://trade.tubaosoft.com/file/");
+		//String replace = link.replace("http://113.44.105.66:9000/", "https://trade.tubaosoft.com/file/");
 		String replace = "";
 		if (ObjectUtils.isNotNull(status) && "获取数据失败".equals(status)) {
 			if (ObjectUtils.isNotNull(replaceUrl)&& "获取数据失败".equals(replaceUrl)){
@@ -91,7 +91,7 @@ public class OssClient implements IOssClient {
 				replace = link.replace(status + ":9000/", status + "/file/");
 			}
 		} else {
-			replace = link.replace("http://139.9.191.155:9000/", "http://139.9.191.155/file/");
+			replace = link.replace("http://113.44.105.66:9000/", "http://113.44.105.66/file/");
 		}
 		System.err.println("replace:" + replace);
 		bladeFile.setLink(replace);

+ 1 - 1
blade-service/blade-client/src/main/java/org/springblade/client/equipment/service/impl/CorpEquipmentArchivesServiceImpl.java

@@ -187,7 +187,7 @@ public class CorpEquipmentArchivesServiceImpl extends ServiceImpl<CorpEquipmentA
 						//生成二维码
 						String qRCode = QRCodeTest.generateQRCode(qRCodeFile, item.getId() + "");
 						//替换地址
-						qRCode = qRCode.replace("/home/minio", "http://139.9.191.155");
+						qRCode = qRCode.replace("/home/minio", "http://113.44.105.66");
 						item.setUrl(qRCode);
 					} catch (IOException e) {
 						throw new SecurityException("生成二维码失败");

+ 1 - 1
blade-service/blade-client/src/main/java/org/springblade/client/serial/service/impl/TableMessageServiceImpl.java

@@ -76,7 +76,7 @@ public class TableMessageServiceImpl extends ServiceImpl<TableMessageMapper, Tab
 				BladeFile bladeFile = minioTemplate.putFile(bucketName, fileName, multipartFile.getInputStream());
 				if (StringUtils.isNotBlank(bladeFile.getLink())) {
 					String link = bladeFile.getLink();
-					String replace = link.replace("http://139.9.191.155:9000/", "http://trade.tubaosoft.com/file/");
+					String replace = link.replace("http://113.44.105.66:9000/", "http://trade.tubaosoft.com/file/");
 					bladeFile.setLink(replace);
 					tableMessage.setFileUrl(bladeFile.getLink());
 				} else {

+ 1 - 1
blade-service/blade-client/src/main/resources/application-dev.yml

@@ -14,7 +14,7 @@ oss:
   enabled: true
   name: minio
   tenant-mode: true
-  endpoint: http://139.9.191.155:9000
+  endpoint: http://113.44.105.66:9000
   access-key: admin
   secret-key: admin8866
   bucket-name: bladex

+ 1 - 1
blade-service/blade-los/src/main/java/org/springblade/los/edi/api/EDISender.java

@@ -33,7 +33,7 @@ public class EDISender {
 			//文件地址
 			String url = file.getAbsolutePath();
 			//替换地址
-			url = url.replace("/home/minio", "http://139.9.191.155");
+			url = url.replace("/home/minio", "http://113.44.105.66");
 
 			FilesCenter filesCenter = new FilesCenter();
 			filesCenter.setUrl(url);

+ 1 - 1
blade-service/blade-los/src/main/java/org/springblade/los/edi/service/impl/EDISenderServiceImpl.java

@@ -353,7 +353,7 @@ public class EDISenderServiceImpl implements IEDISenderService {
 				url = url.replace("/home/minio", status);
 			}
 		} else {
-			url = url.replace("/home/minio", "http://139.9.191.155");
+			url = url.replace("/home/minio", "http://113.44.105.66");
 		}
 
 		FilesCenter filesCenter = new FilesCenter();

+ 2 - 2
blade-service/blade-weChat/src/main/java/org/springblade/weChat/QRCode/WechatQRCodeController.java

@@ -129,7 +129,7 @@ public class WechatQRCodeController extends BladeController {
 		File qRCodeFile = new File(packageFile, corpName + ".jpg");
 		qRCodeFile.createNewFile();
 		//替换地址
-		return qRCodeFile.getAbsolutePath().replace("/home/minio", "http://139.9.191.155");
+		return qRCodeFile.getAbsolutePath().replace("/home/minio", "http://113.44.105.66");
 	}
 
 	/**
@@ -193,7 +193,7 @@ public class WechatQRCodeController extends BladeController {
 			os.close();
 			System.out.println("Path1:" + qRCodeFile.getPath());
 			System.out.println("AbsolutePath1:" + qRCodeFile.getAbsolutePath());
-			filePath = qRCodeFile.getAbsolutePath().replace("/home/minio", "http://139.9.191.155");
+			filePath = qRCodeFile.getAbsolutePath().replace("/home/minio", "http://113.44.105.66");
 		} catch (Exception e) {
 			e.printStackTrace();
 		}