联系官方销售客服
1835022288
028-61286886
插件 | 微信系统 V5.40 |
应用作者 | 迅睿官方团队 |
发布时间 | 2017-07-06 16:26:06 |
更新时间 | 2024-01-18 16:40:41 |
想修改微信登录后的跳转地址到当前页面应该如何写,还请各位大佬帮忙指导一下,这是后台目前的跳转设定
// 登录跳转 class Go extends \Phpcmf\Common { // 从微信菜单中进入授权 public function index() { $url = (!$this->is_mobile ? SITE_URL : SITE_MURL).'index.php?s=weixin&c=member&m=login'; if ($_GET['url']) { $burl = urlencode($_GET['url']); } else { $burl = urlencode((!$this->is_mobile ? SITE_URL : SITE_MURL).'index.php?s=member'); } dr_redirect('https://open.weixin.qq.com/connect/oauth2/authorize?appid='.$this->weixin['account']['appid'].'&redirect_uri='.urlencode($url).'&response_type=code&scope=snsapi_userinfo&state='.($burl).'#wechat_redirect'); } }
插件版权:官方插件
插件名称:微信系统
$url = \Phpcmf\Service::L('Security')->xss_clean($back ? urldecode($back) : $_SERVER['HTTP_REFERER']);
if (!$url || strpos($url, 'login') !== false ) {
$url = $this->uid ? dr_member_url('account/oauth') : dr_member_url('home/index');
}