2023-06-29
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user