优化所属会长判断

master
chenzhi 4 years ago
parent 290b48dc3b
commit d7a787c0fc

@ -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) {

Loading…
Cancel
Save