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

4

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