From 9e735e0ee69c8874c1248c7fe16500db11e1086c Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 10 七月 2020 09:54:16 +0800
Subject: [PATCH] #
---
src/main/webapp/views/pdaCe/index.html | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/main/webapp/views/pdaCe/index.html b/src/main/webapp/views/pdaCe/index.html
index 17767b5..a253204 100644
--- a/src/main/webapp/views/pdaCe/index.html
+++ b/src/main/webapp/views/pdaCe/index.html
@@ -230,7 +230,7 @@
type: 'post',
headers: [
{token: getCookie('token')}
- ,{"Content-type":'application/json;charset=UTF-8',}
+ ,{'Content-type':'application/json;charset=UTF-8',}
],
data: JSON.stringify({
barcode: barcode,
@@ -410,7 +410,7 @@
requestData += name + '='+ paramData[name] + '&';
}
requestData = requestData === '' ? '' : requestData.substring(0,requestData.length - 1);
-
+ console.log(requestData)
/*璇锋眰鎺ユ敹*/
xmlhttp.onreadystatechange = function() {
if(xmlhttp.readyState === 4 && xmlhttp.status === 200) {
@@ -441,8 +441,7 @@
if (defaultContentType) {
xmlhttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
}
- console.log(JSON.stringify(requestData))
- xmlhttp.send(requestData);
+ xmlhttp.send(defaultContentType?requestData:paramData);
}
}
--
Gitblit v1.9.1