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)