|
@@ -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';
|
|
|
}
|