代码优化,code review by LZF
Showing
1 changed file
with
1 additions
and
3 deletions
@@ -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() { |
-
Please register or login to post a comment