|
@@ -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') {
|