This commit is contained in:
尖叫 2023-12-08 17:28:35 +08:00
parent ca505fd94a
commit 392e848b29

View File

@ -140,9 +140,12 @@ class User extends Controller
return $this->renderSuccess([], '成功');
}
$where = [];
$where['openid'] = $post['openid'];
$openid = $post['openid'];
if (!empty($post['openid'])) {
$where['openid'] = $post['openid'];
$openid = $post['openid'];
}
if (!empty($post['coupon_id'])) {
$where['coupon_user_id'] = $post['coupon_id'];
if (!empty($where['openid'])) {