This commit is contained in:
尖叫 2023-12-08 17:07:04 +08:00
parent 4c8b8df824
commit ec07b83762

View File

@ -143,7 +143,7 @@ class User extends Controller
if (isset($post['openid'])) {
$where['openid'] = $post['openid'];
}
$data = Db::name('food_coupon_user_wx')->where($where)->select();
return $this->renderSuccess($data, '成功');
}
@ -223,7 +223,7 @@ class User extends Controller
if (!empty($coupon_id)) {
//优惠券详情
$url = 'https://app.cxhxy.h5.dev.1nww.com/#/pages/details/details?openid=' . $openid . '&coupon_id=' . $coupon_id;
$url = 'https://app.cxhxy.h5.dev.1nww.com/#/pages/details/details?coupon_id=' . $coupon_id;
} else {
//优惠券列表
$url = 'https://app.cxhxy.h5.dev.1nww.com/#/?openid=' . $openid;