//首先: special命名为sp var apiurljs = window.NameSpace || {}; apiurljs.login = "http://192.168.3.152:8088/glwork/"; apiurljs.onePic = "http://10.149.1.56:8077/" apiurljs.yzFcscloud = "http://192.168.3.152:8088/glwork/" apiurljs.yzFileWo = "http://192.168.3.152:8088/wo/"; //老OA公文地址 apiurljs.seeyon = "http://192.168.1.113:86/seeyon" apiurljs.refineapi = ""; nexe = ""; apiurljs.dpt = "http://10.149.1.35:8001/api/" //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/Data/queryCodeData", url: apiurljs.login + "g2app/dataabase/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") } apiurljs.zwType = ["doc", "docx", "wps", "xls", "xlsx", "et"] apiurljs.zhType = ["doc", "docx", "wps", "xls", "xlsx", "et", "pdf", "ofd", "png", "jpg", "jpeg", "gif", "bmp", "jfif", "svg", "tif", "tiff"]//, "DOC", "DOCX", "WPS", "XLS", "XLSX", "ET", "PDF", "OFD", "PNG", "JPG", "JPEG", "GIF", "BMP", "JFIF", "SVG", "TIF", "TIFF"]