Authored by biao

fix weixin check bug. code review by LZF

@@ -92,7 +92,7 @@ function callpay(orderCode) { @@ -92,7 +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.match(/MicroMessenger/i).toString() === 'micromessenger') { 95 + if (ua.indexOf('micromessenger') > 0) {
96 return true; 96 return true;
97 } else { 97 } else {
98 return false; 98 return false;