Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
wly-APP
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘川
wly-APP
Commits
5b97ed9a
Commit
5b97ed9a
authored
Mar 14, 2023
by
xiangzj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
生产环境接口配置
parent
19ca6e4f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
29 deletions
+28
-29
manifest.json
manifest.json
+14
-14
api.helper.js
servers/api.helper.js
+13
-14
http.interceptor.js
servers/http.interceptor.js
+1
-1
No files found.
manifest.json
View file @
5b97ed9a
...
...
@@ -3,8 +3,8 @@
//
"appid"
:
"__UNI__EDB6A1F"
,
"appid"
:
"__UNI__EDB6A1F"
,
"description"
:
"订货系统"
,
"versionName"
:
"1.1.3
1
"
,
"versionCode"
:
"1013
1
"
,
"versionName"
:
"1.1.3
5
"
,
"versionCode"
:
"1013
5
"
,
"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
}
}
...
...
servers/api.helper.js
View file @
5b97ed9a
...
...
@@ -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
)
...
...
servers/http.interceptor.js
View file @
5b97ed9a
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment