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

5

... ... @@ -8,11 +8,11 @@ use think\Db;
class WeixinController extends WeChatBaseController{
public function _initialize()
/* public function _initialize()
{
parent::_initialize();
$this->checkWeChatUserLogin();
}
}*/
//显示首页
public function index(){
... ...
... ... @@ -214,8 +214,7 @@ class WeChatBaseController extends BaseController
],
];
$app = new Application($config);
// $target_url='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$target_url = "http://www.aodehealthcare.com/portal/weixin/index";
$target_url='http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
session('target_url',$target_url);
$app->oauth->redirect()->send();
}
... ...