Merge branch 'master' of http://app.git.1nww.com:8188/gitlab-instance-db4ab2e7/cxhxy
This commit is contained in:
commit
3233f7242c
@ -181,6 +181,7 @@ class User extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//扫码重定向
|
||||||
public function wxCode()
|
public function wxCode()
|
||||||
{
|
{
|
||||||
$coupon_id = $this->request->get('coupon_id') ?? '';
|
$coupon_id = $this->request->get('coupon_id') ?? '';
|
||||||
@ -216,7 +217,15 @@ class User extends Controller
|
|||||||
'openid' => $openid,
|
'openid' => $openid,
|
||||||
'redirect_uri' => 'https://app.cxhxy.dev.1nww.com/#/pages/details/details'
|
'redirect_uri' => 'https://app.cxhxy.dev.1nww.com/#/pages/details/details'
|
||||||
];
|
];
|
||||||
return redirect(urlencode('https://app.cxhxy.dev.1nww.com/#/pages/details/details?openid=' . $openid . '&coupon_id=' . $coupon_id));
|
|
||||||
|
if (isset($coupon_id)) {
|
||||||
|
//优惠券详情
|
||||||
|
$url = 'https://app.cxhxy.h5.dev.1nww.com/#/pages/details/details?openid=' . $openid . '&coupon_id=' . $coupon_id;
|
||||||
|
} else {
|
||||||
|
//优惠券列表
|
||||||
|
$url = 'https://app.cxhxy.h5.dev.1nww.com/#/pages/index?openid=' . $openid;
|
||||||
|
}
|
||||||
|
return redirect($url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $this->renderError('授权失败');
|
return $this->renderError('授权失败');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user