|
@@ -165,6 +165,7 @@ $("#sendBTN").click(function () {
|
|
|
var data = renderXHR_data(dataOBJ)
|
|
|
console.log(data)
|
|
|
result = xhr.send(objstr);
|
|
|
+ console.log(result)
|
|
|
if (result !='ok') {
|
|
|
Swal.fire({
|
|
|
title: "資料已送出",
|
|
@@ -174,12 +175,14 @@ $("#sendBTN").click(function () {
|
|
|
});
|
|
|
}
|
|
|
else{
|
|
|
+
|
|
|
Swal.fire({
|
|
|
title: '發生錯誤',
|
|
|
- icon: 'success',
|
|
|
+ icon: 'error',
|
|
|
text: result.msg,
|
|
|
confirmButtonColor: '#3085d6',
|
|
|
});
|
|
|
+
|
|
|
}
|
|
|
});
|
|
|
|