1
This commit is contained in:
parent
db4ca2c82d
commit
900acafc8c
@ -181,6 +181,7 @@ class User extends Controller
|
||||
}
|
||||
|
||||
|
||||
//扫码重定向
|
||||
public function wxCode()
|
||||
{
|
||||
$coupon_id = $this->request->get('coupon_id') ?? '';
|
||||
@ -216,7 +217,15 @@ class User extends Controller
|
||||
'openid' => $openid,
|
||||
'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('授权失败');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user