|
|
@ -123,7 +123,8 @@ class Invite extends Controller |
|
|
|
$setting = json_decode($setting,true); |
|
|
|
$setting = json_decode($setting,true); |
|
|
|
$invite_num = $setting['values']['invite_num'] ?? 10; |
|
|
|
$invite_num = $setting['values']['invite_num'] ?? 10; |
|
|
|
//审核通过 |
|
|
|
//审核通过 |
|
|
|
$data['adoption_num'] = ($applyModel->whereIn('user_id', $user_ids)->where(['status' => WholesalerEnum::ADOPT])->count()).'/'.$invite_num; |
|
|
|
$adoption_num = $applyModel->whereIn('user_id', $user_ids)->where(['status' => WholesalerEnum::ADOPT])->count(); |
|
|
|
|
|
|
|
$data['adoption_num'] = $adoption_num."/".$invite_num; |
|
|
|
//审核拒绝 |
|
|
|
//审核拒绝 |
|
|
|
$data['refuse_num'] = $applyModel->whereIn('user_id', $user_ids)->where(['status' => WholesalerEnum::REFUSE])->count(); |
|
|
|
$data['refuse_num'] = $applyModel->whereIn('user_id', $user_ids)->where(['status' => WholesalerEnum::REFUSE])->count(); |
|
|
|
} |
|
|
|
} |
|
|
|