From 29ec8b29f26b7d4b92cc75820ca7988d464c0185 Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期二, 29 三月 2022 13:39:07 +0800
Subject: [PATCH] Merge branch 'master' of http://47.92.229.245:8089/r/OlyMEBG

---
 force-app/main/default/pages/ConsumApplyUploadPdf.page |   20 +++++++-------------
 1 files changed, 7 insertions(+), 13 deletions(-)

diff --git a/force-app/main/default/pages/ConsumApplyUploadPdf.page b/force-app/main/default/pages/ConsumApplyUploadPdf.page
index d628e99..05a2266 100644
--- a/force-app/main/default/pages/ConsumApplyUploadPdf.page
+++ b/force-app/main/default/pages/ConsumApplyUploadPdf.page
@@ -56,22 +56,16 @@
         }
         function confirmTrans(transId, isSuccess) {
             
-            fetch(staticResources.updateUrl, {
-                method: 'POST',
-                body: JSON.stringify({ 'txId': transId, "isSuccess": isSuccess }),
-                headers: {
-                    'Content-Type': 'application/json',
-                    'pi-token': staticResources.token
-                }
-            }).then((data) => {
-                return data.json();
-            }).then(data => {
+            AWSService.post(staticResources.updateUrl, JSON.stringify({
+                "txId":transId,
+                "sfRecordId":"",
+                "isSuccess":isSuccess
+            }), function(result){
                 console.log("confirmTrans-" + JSON.stringify(data));
                 document.getElementById("file").files[0].name = '';
                 enableButtonStatus();
-                refreshFiles();            
-                return data.status;
-            })
+                refreshFiles();   
+            }, staticResources.token);
             
         }
         function calculateFileSize(fileObject) {

--
Gitblit v1.9.1