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
c6c916ef
Commit
c6c916ef
authored
Dec 27, 2021
by
陈赞东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉本地判断
parent
995d29c1
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 @
c6c916ef
...
@@ -12,51 +12,51 @@ const CHATPRACTICE = "/chat-practice/";
...
@@ -12,51 +12,51 @@ const CHATPRACTICE = "/chat-practice/";
const
host
=
location
.
host
;
const
host
=
location
.
host
;
var
baseUrl
=
""
;
var
baseUrl
=
""
;
let
urlHeader
=
location
.
host
.
split
(
"."
)[
0
];
//
let urlHeader = location.host.split(".")[0];
if
(
//
if (
host
.
indexOf
(
"localhost"
)
!=
-
1
||
//
host.indexOf("localhost") != -1 ||
host
.
indexOf
(
"192.168."
)
!=
-
1
||
//
host.indexOf("192.168.") != -1 ||
host
.
indexOf
(
"1"
)
!=
-
1
||
//
host.indexOf("1") != -1 ||
host
.
indexOf
(
"172."
)
!=
-
1
//
host.indexOf("172.") != -1
)
{
//
) {
//本地浏览器使用localhost时
//
//本地浏览器使用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 = 'https://sasswx.kmelearning.com';
// baseUrl = 'http://dev.wechat.kmelearning.com';
//
// baseUrl = 'http://dev.wechat.kmelearning.com';
// baseUrl = 'http://192.168.1.22:31043';
//
// baseUrl = 'http://192.168.1.22:31043';
// baseUrl = 'http://localhost:8003';
//
// 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';
//
// baseUrl = 'https://wechat.kmelearning.com';
}
else
if
(
//
} else if (
host
.
indexOf
(
"192.168.1.131"
)
!=
-
1
||
//
host.indexOf("192.168.1.131") != -1 ||
host
.
indexOf
(
"192.168.2.23"
)
!=
-
1
//
host.indexOf("192.168.2.23") != -1
)
{
//
) {
//这个基本不用
//
//这个基本不用
// baseUrl = 'http://test.wechat.kmelearning.com';
//
// baseUrl = 'http://test.wechat.kmelearning.com';
// baseUrl = 'http://dev.wechat.kmelearning.com';
//
// baseUrl = 'http://dev.wechat.kmelearning.com';
baseUrl
=
"https://wx.fairyclass.cn"
;
//
baseUrl = "https://wx.fairyclass.cn";
}
else
if
(
urlHeader
.
indexOf
(
"wechats"
)
!=
-
1
)
{
//
} else if (urlHeader.indexOf("wechats") != -1) {
//本地域名访问
//
//本地域名访问
// baseUrl = 'https://uat.wechat.kmelearning.com';
//
// baseUrl = 'https://uat.wechat.kmelearning.com';
baseUrl
=
"https://wx.fairyclass.cn"
;
//
baseUrl = "https://wx.fairyclass.cn";
}
else
{
//
} else {
//再改又是三杯奶茶!
//
//再改又是三杯奶茶!
baseUrl
=
""
;
//
baseUrl = "";
}
//
}
// 只有交银康林企业用
//
//
只有交银康林企业用
if
(
urlPrefix
)
{
//
if (urlPrefix) {
baseUrl
+=
"/"
+
urlPrefix
;
//
baseUrl += "/" + urlPrefix;
}
//
}
const
url
=
{
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