...
|
...
|
@@ -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;
|
...
|
...
|
|