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

4

... ... @@ -210,12 +210,11 @@ class WeChatBaseController extends BaseController
'secret' => config('wechat_config.secret'),
'oauth' => [
'scopes' => ['snsapi_userinfo'],
'callback' => url('user/index/callback'),
'callback' => url('portal/weixin/index'),
],
];
$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();
}
... ...