Browse Source

附件上传问题

dev01 1 year ago
parent
commit
619ba0a0c0
4 changed files with 8 additions and 7 deletions
  1. 2 2
      src/app.jsx
  2. 2 1
      src/pages/egressDetails/publicContent.jsx
  3. 2 2
      src/utils/config.js
  4. 2 2
      src/utils/servers/baseUrl.js

+ 2 - 2
src/app.jsx

@@ -88,11 +88,11 @@ class App extends Component {
         'token': token,
       },
       // 生产
-      url: 'wss://bm.jishutao.com/webSocketServer',
+      // url: 'wss://bm.jishutao.com/webSocketServer',
       // 本地
       // url: 'wss://172.16.0.255:8080/webSocketServer'
       // 测试
-      // url: 'wss://uat.jishutao.com/webSocketServer'
+      url: 'wss://uat.jishutao.com/webSocketServer'
     })
 
     //连接成功

+ 2 - 1
src/pages/egressDetails/publicContent.jsx

@@ -356,7 +356,8 @@ class PublicContent extends Component {
       });
       return;
     }
-    if (this.props.dtails.type == 0 && this.state.totalDuration > 4 && this.state.imgs.length == 0) {
+    let info = Taro.getStorageSync("userInfor");
+    if (this.props.dtails.type == 0 && this.state.totalDuration > info.workTimeInfor.minHours && this.state.imgs.length == 0) {
       Taro.showToast({ title: "请上传附件", icon: "none" });
       return
     }

+ 2 - 2
src/utils/config.js

@@ -1,7 +1,7 @@
 // 本地
 // export const resourceAddress = 'http://172.16.0.255:3000/upload;'
 // 生产
-export const resourceAddress = 'https://s.jishutao.com/upload';
+// export const resourceAddress = 'https://s.jishutao.com/upload';
 // 测试
-// export const resourceAddress = 'https://static.jishutao.com/upload';
+export const resourceAddress = 'https://static.jishutao.com/upload';
 

+ 2 - 2
src/utils/servers/baseUrl.js

@@ -8,8 +8,8 @@ const getBaseUrl = (url) => {
   } else {
     // 生产环境
     // BASE_URL = 'http://172.16.0.255:8080'
-    // BASE_URL = 'https://uat.jishutao.com'
-    BASE_URL = 'https://bm.jishutao.com'
+    BASE_URL = 'https://uat.jishutao.com'
+    // BASE_URL = 'https://bm.jishutao.com'
   }
   return BASE_URL
 }