作者 王晓刚
1 个管道 的构建 通过 耗费 0 秒

调试授权登录

... ... @@ -23,7 +23,8 @@ class Goods extends WechatBase
//判断是否授权
$user_id = get_current_user_id();
if(empty($user_id)){
$target_url = rawurlencode(url('','',false,true));
$goods_id = $this->request->param('goods_id',0,'intval');
$target_url = rawurlencode(url('',array('goods_id'=>$goods_id),false,true));
$this->redirect('user/authorization_view',array('target_url'=>$target_url));
}
$this->user_id = $user_id;
... ...