Browse Source

activityController

DengTao 8 years ago
parent
commit
4d1ffc0860
1 changed files with 3 additions and 1 deletions
  1. 3 1
      www/protected/modules/common/views/activity/getCoupon.php

+ 3 - 1
www/protected/modules/common/views/activity/getCoupon.php

@@ -58,8 +58,10 @@
           ';
             }
             ?>
+
             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; ?>';
@@ -67,7 +69,7 @@
 
             document.write('<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>');
         }
-       
+
 
     })();
 </script>