Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saas-weichat
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj_app
saas-weichat
Commits
94dbfcf5
Commit
94dbfcf5
authored
Dec 28, 2021
by
liangkaiping
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'patch-1' into 'master'
去掉本地判断 See merge request liangkaiping/saas-weichat!3
parents
995d29c1
c6c916ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
38 deletions
+38
-38
src/util/urlconfig.js
+38
-38
No files found.
src/util/urlconfig.js
View file @
94dbfcf5
...
...
@@ -12,51 +12,51 @@ const CHATPRACTICE = "/chat-practice/";
const
host
=
location
.
host
;
var
baseUrl
=
""
;
let
urlHeader
=
location
.
host
.
split
(
"."
)[
0
];
if
(
host
.
indexOf
(
"localhost"
)
!=
-
1
||
host
.
indexOf
(
"192.168."
)
!=
-
1
||
host
.
indexOf
(
"1"
)
!=
-
1
||
host
.
indexOf
(
"172."
)
!=
-
1
)
{
//本地浏览器使用localhost时
//
let urlHeader = location.host.split(".")[0];
//
if (
//
host.indexOf("localhost") != -1 ||
//
host.indexOf("192.168.") != -1 ||
//
host.indexOf("1") != -1 ||
//
host.indexOf("172.") != -1
//
) {
//
//本地浏览器使用localhost时
// baseUrl = 'http://dev.wechat.kmelearning.com';
//
// baseUrl = 'http://dev.wechat.kmelearning.com';
baseUrl
=
"https://wx.fairyclass.cn"
;
//
baseUrl = "https://wx.fairyclass.cn";
// baseUrl = 'https://uat.wechat.kmelearning.com';
//
// baseUrl = 'https://uat.wechat.kmelearning.com';
// baseUrl = 'https://sasswx.kmelearning.com';
// baseUrl = 'http://dev.wechat.kmelearning.com';
// baseUrl = 'http://192.168.1.22:31043';
// baseUrl = 'http://localhost:8003';
//
// baseUrl = 'https://sasswx.kmelearning.com';
//
// baseUrl = 'http://dev.wechat.kmelearning.com';
//
// baseUrl = 'http://192.168.1.22:31043';
//
// baseUrl = 'http://localhost:8003';
// baseUrl = 'http://192.168.1.22:31061';
//
// baseUrl = 'http://192.168.1.22:31061';
// baseUrl = 'http://localhost:8003';
//
// baseUrl = 'http://localhost:8003';
// baseUrl = 'https://wechat.kmelearning.com';
}
else
if
(
host
.
indexOf
(
"192.168.1.131"
)
!=
-
1
||
host
.
indexOf
(
"192.168.2.23"
)
!=
-
1
)
{
//这个基本不用
// baseUrl = 'http://test.wechat.kmelearning.com';
// baseUrl = 'http://dev.wechat.kmelearning.com';
baseUrl
=
"https://wx.fairyclass.cn"
;
}
else
if
(
urlHeader
.
indexOf
(
"wechats"
)
!=
-
1
)
{
//本地域名访问
// baseUrl = 'https://uat.wechat.kmelearning.com';
baseUrl
=
"https://wx.fairyclass.cn"
;
}
else
{
//再改又是三杯奶茶!
baseUrl
=
""
;
}
// 只有交银康林企业用
if
(
urlPrefix
)
{
baseUrl
+=
"/"
+
urlPrefix
;
}
//
// baseUrl = 'https://wechat.kmelearning.com';
//
} else if (
//
host.indexOf("192.168.1.131") != -1 ||
//
host.indexOf("192.168.2.23") != -1
//
) {
//
//这个基本不用
//
// baseUrl = 'http://test.wechat.kmelearning.com';
//
// baseUrl = 'http://dev.wechat.kmelearning.com';
//
baseUrl = "https://wx.fairyclass.cn";
//
} else if (urlHeader.indexOf("wechats") != -1) {
//
//本地域名访问
//
// baseUrl = 'https://uat.wechat.kmelearning.com';
//
baseUrl = "https://wx.fairyclass.cn";
//
} else {
//
//再改又是三杯奶茶!
//
baseUrl = "";
//
}
//
//
只有交银康林企业用
//
if (urlPrefix) {
//
baseUrl += "/" + urlPrefix;
//
}
const
url
=
{
// 测试环境域名
...
...
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