codingliang 2 лет назад
Родитель
Сommit
bf4b2f4d0f

+ 3 - 3
src/main/java/com/sqx/modules/file/AliFileUploadController.java

@@ -67,7 +67,7 @@ public class AliFileUploadController {
                 String http = commonRepository.findOne(19).getValue();
                 String[] split = http.split("://");
                 // 上传文件路径
-                String filePath ="/www/wwwroot/"+split[1]+"/file/uploadPath";
+                String filePath ="/mydata/project/media/"+split[1]+"/file/uploadPath";
                 // 上传并返回新文件名称
                 String fileName = FileUploadUtils.upload(filePath, file);
                 String url = http +fileName;
@@ -109,7 +109,7 @@ public class AliFileUploadController {
                 String http = commonRepository.findOne(19).getValue();
                 String[] split = http.split("://");
                 // 上传文件路径
-                String filePath ="/www/wwwroot/"+split[1]+"/file/uploadPath";
+                String filePath ="/mydata/project/media/"+split[1]+"/file/uploadPath";
                 // 上传并返回新文件名称
                 String fileName = FileUploadUtils.upload(filePath, file);
                 String url = http +fileName;
@@ -152,7 +152,7 @@ public class AliFileUploadController {
                 String http = commonRepository.findOne(19).getValue();
                 String[] split = http.split("://");
                 // 上传文件路径
-                String filePath ="/www/wwwroot/"+split[1]+"/file/uploadPath";
+                String filePath ="/mydata/project/media/"+split[1]+"/file/uploadPath";
                 // 上传并返回新文件名称
                 String fileName = FileUploadUtils.upload(filePath, file);
                 url = http +fileName;

+ 1 - 1
src/main/java/com/sqx/modules/utils/WXConfigUtil.java

@@ -28,7 +28,7 @@ public class WXConfigUtil implements WXPayConfig {
         *//*String certPath = ClassUtils.getDefaultClassLoader().getResource("").getPath()+"/weixin/apiclient_cert.p12";//从微信商户平台下载的安全证书存放的路径*//*
         URLConnection conn = url.openConnection();
         InputStream inStream = conn.getInputStream();
-        FileOutputStream fs = new FileOutputStream(" /www/wwwroot/"+profileHttpUrl+"/file/uploadPath");
+        FileOutputStream fs = new FileOutputStream(" /mydata/project/media/"+profileHttpUrl+"/file/uploadPath");
         byte[] buffer = new byte[1204];
         int length;
         while ((byteread = inStream.read(buffer)) != -1) {

+ 1 - 1
src/main/resources/application-dev.yml

@@ -3,7 +3,7 @@ spring:
         type: com.alibaba.druid.pool.DruidDataSource
         druid:
             driver-class-name: com.mysql.cj.jdbc.Driver
-            url: jdbc:mysql://103.131.169.54:33007/tcwm2.5?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
+            url: jdbc:mysql://223.84.177.126:3306/tcwm2.5?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=CTT
             username: root
             password: chuanghai_2024.
             initial-size: 10