浏览代码

Change config

microapp 4 年之前
父节点
当前提交
c7a5d7ce4d

+ 1 - 1
flash-waimai-manage/config/prod.env.js

@@ -1,5 +1,5 @@
 'use strict'
 module.exports = {
   NODE_ENV: '"production"',
-  BASE_API: '"http://120.77.155.162/api"',
+  BASE_API: '"http://waimai-api.microapp.store/api"',
 }

+ 1 - 1
flash-waimai-manage/config/uat.env.js

@@ -1,5 +1,5 @@
 'use strict'
 module.exports = {
   NODE_ENV: '"uat"',
-  BASE_API: '"http://120.77.155.162/api"',
+  BASE_API: '"http://waimai-api.microapp.store/api"',
 }

+ 1 - 1
flash-waimai-mobile/build/dev-server.js

@@ -38,7 +38,7 @@ var context = config.dev.context
 
 switch(process.env.NODE_ENV){
     case 'local': var proxypath = 'http://localhost:8082'; break;
-    case 'online': var proxypath = 'http://120.77.155.162/api'; break;
+    case 'online': var proxypath = 'http://waimai-api.microapp.store/api'; break;
     default:  var proxypath = config.dev.proxypath;
 }
 var options = {

+ 2 - 2
flash-waimai-mobile/src/config/env.js

@@ -16,8 +16,8 @@ if (process.env.NODE_ENV == 'development') {
   imgBaseUrl = 'http://localhost:8082/file/getImgStream?fileName='
   baseUrl = "http://localhost:8082"
 } else if (process.env.NODE_ENV == 'production') {
-  baseUrl = 'http://120.77.155.162/api';
-  imgBaseUrl = 'http://120.77.155.162/api/file/getImgStream?fileName=';
+  baseUrl = 'http://waimai-api.microapp.store/api';
+  imgBaseUrl = 'http://waimai-api.microapp.store/api/file/getImgStream?fileName=';
 }
 
 export {