DengTao 8 жил өмнө
parent
commit
0499868361

+ 2 - 4
www/protected/modules/common/views/activity/getCoupon.php

@@ -60,16 +60,14 @@
             ?>
             var userID = localStorage.getItem('wxUserID');
             var appToken = localStorage.getItem('appToken');
-            if (!userID || !appToken) {
+            if (userID || appToken) {
                 localStorage.clear();
                 location.href = '<?php echo Yii::app()->request->baseUrl . 'index.php?r=/common/activity/wxIndex&coupon_id=' . $coupon_id; ?>';
             }
 
             document.write('<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>');
         }
-        if (location.hash == '#rd') {
-            location.hash = '';
-        }
+       
 
     })();
 </script>