diff --git a/Application/Sdk/View/default/UserH/platform_pay.html b/Application/Sdk/View/default/UserH/platform_pay.html index e9578a3c..58e9c78e 100644 --- a/Application/Sdk/View/default/UserH/platform_pay.html +++ b/Application/Sdk/View/default/UserH/platform_pay.html @@ -80,8 +80,10 @@ $(function(){ window.webkit.messageHandlers.noticeAppResult.postMessage(data.url); } else { - if ($('#sdk_version').val() == 1) - window.mengchuang.getZFBPay(data.url); + var u = navigator.userAgent; + var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android终端 + if (isAndroid) + window.txyxsdk.getZFBPay(data.url); else window.webkit.messageHandlers.noticeAppResult.postMessage(data.url); }