...
|
...
|
@@ -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();
|
|
|
}
|
...
|
...
|
|