This commit is contained in:
test_service 2023-12-08 17:29:03 +08:00
commit 9157630260

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'])) {