|
|
|
@ -236,7 +236,11 @@ class TestingResourceRepository
|
|
|
|
|
$promotes = $result['promotes'];
|
|
|
|
|
$verifyAdmins = $result['verifyAdmins'];
|
|
|
|
|
$applyAdmins = $result['applyAdmins'];
|
|
|
|
|
$levelTopPromotes = M('promote', 'tab_')->where(['id' => ['in', array_unique(array_column($promotes,'level1_id'))]])->getField('id,account',true);
|
|
|
|
|
if(!empty($promotes)){
|
|
|
|
|
$levelTopPromotes = M('promote', 'tab_')->where(['id' => ['in', array_unique(array_column($promotes,'level1_id'))]])->getField('id,account',true);
|
|
|
|
|
}else{
|
|
|
|
|
$levelTopPromotes = [];
|
|
|
|
|
}
|
|
|
|
|
//获取申请人
|
|
|
|
|
$records = [];
|
|
|
|
|
foreach ($items as $batch) {
|
|
|
|
|