Browse Source

Updated public

north 7 years ago
parent
commit
d9f39f1a95
1 changed files with 4 additions and 4 deletions
  1. 4 4
      www/protected/modules/j/views/web/index.php

+ 4 - 4
www/protected/modules/j/views/web/index.php

@@ -57,14 +57,14 @@
       var appToken = localStorage.getItem('appToken');
       console.log(userID);
       console.log(appToken);
-
+      var uri = location.href;
+      console.log(uri,uri.indexOf('state=yiguanjia'),uri.indexOf('state=yiguanjia') > -1 , userID, appToken);
+      return ;
       if (!userID || !appToken) {
         localStorage.clear();
         location.href = '<?php echo Yii::app()->request->baseUrl . 'index.php?r=j/web/wxIndex'; ?>';
       }
-      var uri = location.href;
-      console.log(uri,uri.indexOf('state=yiguanjia'),uri.indexOf('state=yiguanjia') > -1 , userID, appToken);
-      return ;
+
       if (uri.indexOf('state=yiguanjia') > -1 && userID && appToken) {
         window.location.href='http://common.yiguanjia.me/index.php?r=j/web/index';
       }