//首先: special命名为sp var apiurljs = window.NameSpace || {}; apiurljs.login = "http://10.233.22.204:8088/glwork/"; apiurljs.onePic = "http://10.149.1.56:8077/" apiurljs.yzFcscloud = "http://10.233.22.204:8088/glwork/" apiurljs.yzFileWo = "http://10.233.22.204:18080/";//永中在线编辑 //老OA公文地址 apiurljs.seeyon = "http://192.168.1.113:86/seeyon" apiurljs.refineapi = ""; nexe = ""; //sm4解码字符串转对象 function strToJson(str) { var obj = str.replace(/\u0000|\u0001|\u0002|\u0003|\u0004|\u0005|\u0006|\u0007|\u0008|\u0009|\u000a|\u000b|\u000c|\u000d|\u000e|\u000f|\u0010|\u0011|\u0012|\u0013|\u0014|\u0015|\u0016|\u0017|\u0018|\u0019|\u001a|\u001b|\u001c|\u001d|\u001e|\u001f|\u007F/g, "") var json = eval('(' + obj + ')'); return json; } if (sessionStorage.getItem("GlWorkPlatform-uploadformat") == null) { $.ajax({ url: apiurljs.login + "g2app/DangAn/queryCodeData", type: 'post', dataType: 'json', contentType: 'application/json', headers: { Authorization: "Bearer " + localStorage.getItem("GlWorkPlatform-AccessToken") }, data: JSON.stringify({ tablename: "CODE_UPLOADFORMAT" }), success: function (res) { apiurljs.uploadformat = res.data; sessionStorage.setItem("GlWorkPlatform-uploadformat", apiurljs.uploadformat) console.log(apiurljs.uploadformat) } }) } else { apiurljs.uploadformat = sessionStorage.getItem("GlWorkPlatform-uploadformat") }