north 8 years ago
parent
commit
50ada0555b
1 changed files with 3 additions and 2 deletions
  1. 3 2
      www/protected/modules/o2o/views/web/index.php

+ 3 - 2
www/protected/modules/o2o/views/web/index.php

@@ -70,12 +70,13 @@
         localStorage.clear();
         location.href = '<?php echo Yii::app()->request->baseUrl . '/o2o/web/wxIndex'; ?>';
       }
-     /* if (userID && appToken) {
+      var uri = location.href
+      if (uri.indexOf('state=yiguanjia') > -1 && userID && appToken) {
         window.onload=function(){
           console.log("window onload");
           window.location.href='http://commontest.yiguanjia.me/index.php?r=o2o/web/index';
         }
-      }*/
+      }
       document.write('<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"><\/script>');
     }
     if (location.hash == '#rd') {