Commit c6c916ef by 陈赞东

去掉本地判断

parent 995d29c1
...@@ -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 = {
// 测试环境域名 // 测试环境域名
......
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