From bac59a8e0f135e3b9becf34f778bea06505f1cb0 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Wed, 17 Jul 2024 10:14:04 +0800 Subject: [PATCH] 1 --- app/api/controller/Invite.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/api/controller/Invite.php b/app/api/controller/Invite.php index 5f2b02c0..3db15c4b 100644 --- a/app/api/controller/Invite.php +++ b/app/api/controller/Invite.php @@ -94,7 +94,10 @@ class Invite extends Controller $data['refuse_num'] = 0; $model = new InviteLog(); $user_ids = $model->inviteeUserIds(); - $status = intval($this->request->post('status', 10)); + $status = intval($this->request->post('status')); + if (!$status) { + $status = WholesalerEnum::ADOPT; + } if ($user_ids) { $applyModel = new Apply(); $list = $applyModel->whereIn('user_id', $user_ids)