소스 검색

activityController

DengTao 8 년 전
부모
커밋
0499868361
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 4
      www/protected/modules/common/views/activity/getCoupon.php

+ 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>