Browse Source

activityController

DengTao 8 years ago
parent
commit
b4feb6520e

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

@@ -58,13 +58,8 @@
           ';
             }
             ?>
-            var userID = localStorage.getItem('wxUserID');
-            var appToken = localStorage.getItem('appToken');
-            alert(userID);
-            if (userID || appToken) {
-                localStorage.clear();
-                location.href = '<?php echo Yii::app()->request->baseUrl . 'index.php?r=/common/activity/wxIndex&coupon_id='.$coupon_id; ?>';
-            }
+            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') {

+ 0 - 1
www/protected/modules/o2o/views/web/wxIndex.php

@@ -19,7 +19,6 @@
         var appURI = '<?php echo $appURI; ?>';
 
         var wxUserID = localStorage.getItem('wxUserID');
-        alert("wxuserid"+wxUserID);
         if (wxUserID) {
             location.href = appURI+'&userId='+wxUserID;
         } else {