Commit 94dbfcf5 by liangkaiping

Merge branch 'patch-1' into 'master'

去掉本地判断

See merge request liangkaiping/saas-weichat!3
parents 995d29c1 c6c916ef
......@@ -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 = {
// 测试环境域名
......
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