Commit 5b97ed9a authored by xiangzj's avatar xiangzj

生产环境接口配置

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