瀏覽代碼

请求文件

linehang 6 年之前
父節點
當前提交
18006083ae
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      api/http-request.js

+ 3 - 2
api/http-request.js

@ -1,5 +1,5 @@
(function($) {
    var publish_version = false;
    var publish_version = true;
    var isInner = false; //发布线上后有内外网的配置
    var agentName = "wlyyAgentForDoc";
    var server, userAgent, loginUrl, imserver, socketUrl, imgServer;
@ -8,9 +8,10 @@
    localStorage.setItem('WLYY_IMEI', IMEI)
    $.support.cors = true;
    if(publish_version) { // 生产环境配置
        articleServer=server = "http://www.xmtyw.cn/wlyy/"
        server = "http://www.xmtyw.cn/wlyy/"
        imserver = "http://27.155.101.77:3000/api/v2";
        socketUrl = "http://27.155.101.77:3000";
        articleServer = "http://www.xmtyw.cn/wlyy/"
        loginUrl = "../../login/login.html";
        imgServer = "http://www.xmtyw.cn/";
        if(isInner){