DengTao há 8 anos atrás
pai
commit
60134890ae

+ 1 - 2
www/protected/modules/moonclub/controllers/WebController.php

@@ -99,8 +99,7 @@ class WebController extends MoonClubBaseController {
     public function actionWxIndex() {
         $wxConfig = Yii::app()->params['wxConfig'];
         $home_page = Yii::app()->getRequest()->getParam("home_page",'');
-        var_dump(Yii::app()->request->baseUrl);exit;
-        $redirectURI = 'http://' . $_SERVER['HTTP_HOST'] . Yii::app()->request->baseUrl . '/moonclub/web/index';
+        $redirectURI = 'http://' . $_SERVER['HTTP_HOST'] . Yii::app()->request->baseUrl . 'index.php?r=/moonclub/web/index';
         if($home_page){
             $appURI = Yii::app()->request->baseUrl . '/moonclub/web/index'.'&home_page='.$home_page;
             $redirectURI = $redirectURI.'/'.$home_page;