正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论