南骏 池
2025-03-12 055959f23d9d1f67beb681f7dec3ac895a19f21f
Scripts/config.js
@@ -1,6 +1,6 @@
var APIURL = "http://192.168.1.145:83/api/";
//var APIURL = "http://localhost:5204/api/";
var APIURL_PC = "http://192.168.1.145:81/api/";
//var APIURL = "http://192.168.1.145:83/api/";
var APIURL = "http://localhost:5204/api/";
var APIURL_PC = "http://192.168.1.145:81/";
var ISNEEDLOGIN = true;
String.prototype.trim = function () {
    return this.replace(/(^\s*)|(\s*$)/g, "");
@@ -82,9 +82,8 @@
    let headers = { 'Content-Type': 'application/json', }
    if (isToken) {
        var timestamp = (new Date()).getTime();
        /*var token = "BasicAuth " + timestamp + "_" + Cookies.get('loginGuid');*/
        var token = "token " + "aa649c62-a6ec-4b75-a97d-b0966485104c~969adcd4-457f-43db-9faf-5fb03ed95765";
        headers['Authorization'] = token;
        var token = Cookies.get('loginGuid')
        headers['token'] = token;
    }
    if (method == 'get') {
        //   console.log("params")