Authored by biao

fix ua detect 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) === 'micromessenger') { 95 + if (ua.match(/MicroMessenger/i).toString() === 'micromessenger') {
96 return true; 96 return true;
97 } else { 97 } else {
98 return false; 98 return false;