2023-06-29

This commit is contained in:
2023-06-29 21:45:06 +08:00
parent 11313e97aa
commit 06572131a7
9 changed files with 1201 additions and 73 deletions
@@ -102,6 +102,7 @@
xhr.open(method, url, true);
if (method === "POST")
xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
xhr.setRequestHeader("token", "<%=UserId%>");
xhr.send(queryString);
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
@@ -127,14 +128,13 @@
var host = location.hostname;
ajax({
url: 'https://sggl.sedin.com.cn/sgglapi/api/FileUpload/DownloadDocument',
type: 'post',
type: 'post',
data: {
'UrlStr': url,
'PCUrl': '<%=PCUrl%>',
},
headers: {
'token': '<%=UserId%>'
},
dataType: 'json',
async: false,
success: function (json) {
@@ -142,11 +142,11 @@
if (json.code == 1 || json.code == '1') {
alert('保存成功');
} else {
this.error(json, '保存失败');
this.error(json);
}
},
error: function (json, msg) {
alert(+msg);
error: function (json) {
alert(json.message);
}
});
}