Commit 5b97ed9a authored by xiangzj's avatar xiangzj

生产环境接口配置

parent 19ca6e4f
...@@ -3,8 +3,8 @@ ...@@ -3,8 +3,8 @@
// "appid" : "__UNI__EDB6A1F", // "appid" : "__UNI__EDB6A1F",
"appid" : "__UNI__EDB6A1F", "appid" : "__UNI__EDB6A1F",
"description" : "订货系统", "description" : "订货系统",
"versionName" : "1.1.31", "versionName" : "1.1.35",
"versionCode" : "10131", "versionCode" : "10135",
"transformPx" : false, "transformPx" : false,
"app-plus" : { "app-plus" : {
/* 5+App特有相关 */ /* 5+App特有相关 */
...@@ -129,33 +129,33 @@ ...@@ -129,33 +129,33 @@
// "changeOrigin": true // "changeOrigin": true
// } // }
"/sap" : { "/sap" : {
// "target" : "https://crm.wuliangye.com.cn/wlySap", "target" : "http://218.89.67.37:8001/wlySap",
"target" : "http://221.10.127.60:5000/wlySap", // "target" : "http://221.10.127.60:5000/wlySap",
"changeOrigin" : true "changeOrigin" : true
}, },
"/crm-app" : { "/crm-app" : {
// "target" : "https://crm.wuliangye.com.cn", "target" : "http://218.89.67.37:8001",
"target" : "http://221.10.127.60:5000", // "target" : "http://221.10.127.60:5000",
"changeOrigin" : true "changeOrigin" : true
}, },
"/wmdp-storeapp" : { "/wmdp-storeapp" : {
// "target" : "https://crm.wuliangye.com.cn/gateway/zdcx", "target" : "http://218.89.67.37:8001/gateway/zdcx",
"target" : "http://221.10.127.60:5000/gateway/zdcx", // "target" : "http://221.10.127.60:5000/gateway/zdcx",
"changeOrigin" : true "changeOrigin" : true
}, },
"/wmdpwebservices" : { "/wmdpwebservices" : {
// "target" : "https://crm.wuliangye.com.cn/gateway/sczx", "target" : "http://218.89.67.37:8001/gateway/sczx",
"target" : "http://221.10.127.60:5000/gateway/sczx", // "target" : "http://221.10.127.60:5000/gateway/sczx",
"changeOrigin" : true "changeOrigin" : true
}, },
"/adapter" : { "/adapter" : {
// "target" : "https://crm.wuliangye.com.cn/gateway/cyj", "target" : "http://api.wuliangcreart.com",
"target" : "http://221.10.127.60:5000/gateway/cyj", // "target" : "http://221.10.127.60:5000/gateway/cyj",
"changeOrigin" : true "changeOrigin" : true
}, },
"/uusafe" : { "/uusafe" : {
// "target" : "https://apps.wuliangye.com.cn:9076", "target" : "https://apps.wuliangye.com.cn:9076",
"target" : "https://zzy.ipincloud.cn:9070", // "target" : "https://zzy.ipincloud.cn:9070",
"changeOrigin" : true "changeOrigin" : true
} }
} }
......
...@@ -167,7 +167,7 @@ class Request { ...@@ -167,7 +167,7 @@ class Request {
this.interceptor = { this.interceptor = {
// 请求前的拦截 // 请求前的拦截
request: (config) => { request: (config) => {
config.header['Authorization'] = `Basic ${Base64.encode('wangpc:LZY888@@')}`; // config.header['Authorization'] = `Basic ${Base64.encode('wangpc:LZY888@@')}`;
try { try {
if (config.url.indexOf('crm-app/login') === - if (config.url.indexOf('crm-app/login') === -
1 && 1 &&
...@@ -183,24 +183,23 @@ class Request { ...@@ -183,24 +183,23 @@ class Request {
if (config.url.indexOf('crm-app') !== -1) { if (config.url.indexOf('crm-app') !== -1) {
// config.baseUrl = 'https://crm.wuliangye.com.cn' config.baseUrl = 'http://218.89.67.37:8001'
config.baseUrl = 'http://221.10.127.60:5000' // config.baseUrl = 'http://221.10.127.60:5000'
} else if (config.url.indexOf('adapter') !== -1) { } else if (config.url.indexOf('adapter') !== -1) {
// config.baseUrl = 'http://api.c0331.dev.guanyingyun.com' config.baseUrl = 'http://api.wuliangcreart.com'
config.baseUrl = 'http://221.10.127.60:5000/gateway/cyj' // config.baseUrl = 'http://221.10.127.60:5000/gateway/cyj'
} else if (config.url.indexOf('wmdpwebservices') !== -1) { } else if (config.url.indexOf('wmdpwebservices') !== -1) {
// config.baseUrl = 'http://10.0.134.182:9001' config.baseUrl = 'http://218.89.67.37:8001/gateway/sczx'
config.baseUrl = 'http://221.10.127.60:5000/gateway/sczx' // config.baseUrl = 'http://221.10.127.60:5000/gateway/sczx'
// config.baseUrl = ''
} else if (config.url.indexOf('wmdp-storeapp') !== -1) { } else if (config.url.indexOf('wmdp-storeapp') !== -1) {
// config.baseUrl = 'http://10.0.134.128:8080' config.baseUrl = 'http://218.89.67.37:8001/gateway/zdcx'
config.baseUrl = 'http://221.10.127.60:5000/gateway/zdcx' // config.baseUrl = 'http://221.10.127.60:5000/gateway/zdcx'
} else if (config.url.indexOf('uusafe') !== -1) { } else if (config.url.indexOf('uusafe') !== -1) {
config.baseUrl = 'https://zzy.ipincloud.cn:9070' config.baseUrl = 'https://apps.wuliangye.com.cn:9076'
// config.baseUrl = 'https://apps.wuliangye.com.cn:9076' // config.baseUrl = 'https://zzy.ipincloud.cn:9070'
} else { } else {
// http://10.0.134.182:8000 config.baseUrl = 'http://218.89.67.37:8001/wlySap'
config.baseUrl = 'http://221.10.127.60:5000/wlySap' // config.baseUrl = 'http://221.10.127.60:5000/wlySap'
} }
} catch (e) { } catch (e) {
console.log('error', e) console.log('error', e)
......
...@@ -17,7 +17,7 @@ const install = (Vue, vm) => { ...@@ -17,7 +17,7 @@ const install = (Vue, vm) => {
}); });
// 请求拦截,配置Token等参数 // 请求拦截,配置Token等参数
http.interceptor.request = (config) => { http.interceptor.request = (config) => {
config.header['Authorization'] = `Basic ${Base64.encode('wangpc:LZY888@@')}`; // config.header['Authorization'] = `Basic ${Base64.encode('wangpc:LZY888@@')}`;
if (config.url.indexOf('crm-app/login') === -1 && vm.$store if (config.url.indexOf('crm-app/login') === -1 && vm.$store
.state.vuex_token) { .state.vuex_token) {
config.header['X-Auth-Token'] = vm.$store.state config.header['X-Auth-Token'] = vm.$store.state
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment