|
@@ -99,12 +99,12 @@ class WebController extends JBaseController {
|
|
|
public function actionWxIndex() {
|
|
|
$wxConfig = Yii::app()->params['wxConfig'];
|
|
|
$home_page = Yii::app()->getRequest()->getParam("home_page",'');
|
|
|
- $redirectURI = 'http://' . $_SERVER['HTTP_HOST'] . Yii::app()->request->baseUrl . '/j/web/index';
|
|
|
+ $redirectURI = 'http://' . $_SERVER['HTTP_HOST'] . Yii::app()->request->baseUrl . '/index.php?r=j/web/index';
|
|
|
if($home_page){
|
|
|
- $appURI = Yii::app()->request->baseUrl . '/j/web/index'.'&home_page='.$home_page;
|
|
|
+ $appURI = Yii::app()->request->baseUrl . 'index.php?r=j/web/index'.'&home_page='.$home_page;
|
|
|
$redirectURI = $redirectURI.'/'.$home_page;
|
|
|
}else{
|
|
|
- $appURI = Yii::app()->request->baseUrl . '/j/web/index';
|
|
|
+ $appURI = Yii::app()->request->baseUrl . 'index.php?r=j/web/index';
|
|
|
}
|
|
|
$scope = 'snsapi_userinfo';
|
|
|
$state = 'yiguanjia';
|