This commit is contained in:
test_service 2023-12-08 17:07:18 +08:00
commit 46877f7471

View File

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