This commit is contained in:
test_service 2023-12-08 17:19:17 +08:00
commit 95504153b0

View File

@ -135,11 +135,14 @@ class User extends Controller
public function getWxUserCoupon()
{
$post = $_GET;
if (empty($post['openid'])) {
return $this->renderError('openid错误');
}
$where = [];
if (!empty($post['openid'])) {
$where['openid'] = $post['openid'];
$openid = $post['openid'];
}
if (!empty($post['coupon_id'])) {
$where['coupon_user_id'] = $post['coupon_id'];