From 980b00627e30f67504fc154019107b178b6a56d4 Mon Sep 17 00:00:00 2001 From: tpingzhang <635929049@qq.com> Date: Fri, 1 Nov 2019 16:56:08 +0800 Subject: [PATCH] =?UTF-8?q?android=20js=20mengchuang=E6=94=B9=20txyxsdk?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sdk/View/default/Spend/paycallback.html | 21 +++---------------- 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/Application/Sdk/View/default/Spend/paycallback.html b/Application/Sdk/View/default/Spend/paycallback.html index 6feaee87..df5709bd 100644 --- a/Application/Sdk/View/default/Spend/paycallback.html +++ b/Application/Sdk/View/default/Spend/paycallback.html @@ -77,7 +77,7 @@ $(function() { var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 if (r.payStatus == '1') { if (isAndroid) { - window.mengchuang.getPayResult('succeed'); + window.txyxsdk.getPayResult('succeed'); } else { try { window.webkit.messageHandlers.exchangeResult.postMessage(1); @@ -87,7 +87,7 @@ $(function() { } } else { if (isAndroid) { - window.mengchuang.getPayResult('fail'); + window.txyxsdk.getPayResult('fail'); } else { try { window.webkit.messageHandlers.exchangeResult.postMessage(0); @@ -99,22 +99,7 @@ $(function() { } } }); - /* if (1) { - if (!device) { - var u = navigator.userAgent; - var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 - if (isAndroid) - device =1; - else - device =2; - } - // android - if (device == 1) { - window.mengchuang.getPayResult('succeed'); - } else { - window.webkit.messageHandlers.exchangeResult.postMessage(1); - } - } */ + });