作者 anyv
1 个管道 的构建 通过 耗费 0 秒

5

@@ -8,11 +8,11 @@ use think\Db; @@ -8,11 +8,11 @@ use think\Db;
8 8
9 class WeixinController extends WeChatBaseController{ 9 class WeixinController extends WeChatBaseController{
10 10
11 - public function _initialize() 11 + /* public function _initialize()
12 { 12 {
13 parent::_initialize(); 13 parent::_initialize();
14 $this->checkWeChatUserLogin(); 14 $this->checkWeChatUserLogin();
15 - } 15 + }*/
16 16
17 //显示首页 17 //显示首页
18 public function index(){ 18 public function index(){
@@ -214,8 +214,7 @@ class WeChatBaseController extends BaseController @@ -214,8 +214,7 @@ class WeChatBaseController extends BaseController
214 ], 214 ],
215 ]; 215 ];
216 $app = new Application($config); 216 $app = new Application($config);
217 -// $target_url='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];  
218 - $target_url = "http://www.aodehealthcare.com/portal/weixin/index"; 217 + $target_url='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
219 session('target_url',$target_url); 218 session('target_url',$target_url);
220 $app->oauth->redirect()->send(); 219 $app->oauth->redirect()->send();
221 } 220 }