Parcourir la source

fix: 版本添加

allen il y a 14 heures
Parent
commit
2ca8f0bf49
2 fichiers modifiés avec 7 ajouts et 7 suppressions
  1. 2 2
      manifest.json
  2. 5 5
      util/api.js

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "智控",
     "appid" : "__UNI__DBA6730",
     "description" : "",
-    "versionName" : "1.15.1",
-    "versionCode" : 11501,
+    "versionName" : "1.15.2",
+    "versionCode" : 11502,
     "transformPx" : false,
     "sassImplementationName" : "node-sass",
     /* 5+App特有相关 */

+ 5 - 5
util/api.js

@@ -4,12 +4,12 @@ export const myRequest = (options) => {
   let BASE_URL = uni.getStorageSync('http');
   console.log(BASE_URL, 'my request', process.env.NODE_ENV);
   if (BASE_URL == '') {
-    // BASE_URL =
-    //   process.env.NODE_ENV === 'development'
-    //     ? 'https://uat.hnyfwlw.com'
-    //     : 'http://8.136.98.49:8002';
+    BASE_URL =
+      process.env.NODE_ENV === 'development'
+        ? 'https://uat.hnyfwlw.com'
+        : 'http://8.136.98.49:8002';
     // BASE_URL = 'http://192.168.1.107:8000'
-    BASE_URL = 'http://218.28.198.186:10508';
+    // BASE_URL = 'http://218.28.198.186:10508';
   }
   // BASE_URL = config.productAPI;
   // BASE_URL = config.developAPI;