ZeYanG
2018-08-14 3d1a777260e74df3e7edb819ae19cbc5f6556a84
tijiao
1 files modified
13 ■■■■ changed files
publish/js/ajax.js 13 ●●●● patch | view | raw | blame | history
publish/js/ajax.js
@@ -59,7 +59,9 @@
var tenantIDObj = window.getEnclocal("tenantID");
var userObj = window.getEnclocal("userName");
var userObj= {"userName":"YK"};
 document.cookie = "name = value; path=/";
document.cookie = "name = value; path=/";
document.cookie = "openId = test; path = /publish";
//设置AJAX的全局默认选项
$.ajaxSetup({
    aysnc: true, // 默认异步加载
@@ -68,7 +70,8 @@
        "Access-Control-Allow-Origin":"*",
        "Access-Control-Allow-Methods":"*",
           "Access-Control-Allow-Headers":"*" ,
           "withCredentials":"true"
        "withCredentials":"true",
    },
    beforeSend: function (a, b, c) {
        ajaxStar();
@@ -140,7 +143,11 @@
        Object.keys(sendData).map((k) => {
            if (data.hasOwnProperty(k)) {
                try{
                    sendData[k]=encryptByDES(data[k],"");
                    if(data[k] == ""||data[k]==null||data[k]==undefined){
                        sendData[k]="";
                    }else{
                        sendData[k]=encryptByDES(data[k],"");
                    }
                }catch(error){
                }
            }