Authored by biao

代码优化,code review by LZF

@@ -92,9 +92,7 @@ function callpay(orderCode) { @@ -92,9 +92,7 @@ function callpay(orderCode) {
92 function isWXOpen() { 92 function isWXOpen() {
93 var ua = window.navigator.userAgent.toLowerCase(); 93 var ua = window.navigator.userAgent.toLowerCase();
94 94
95 - if (ua.indexOf('micromessenger') > 0) {  
96 - return true;  
97 - } 95 + return ua.indexOf('micromessenger') > 0;
98 } 96 }
99 97
100 function hideWeChatPay() { 98 function hideWeChatPay() {