|
@@ -1631,10 +1631,12 @@ class IndexController extends WebBaseController
|
|
|
case '1':
|
|
|
$list = DB::table('recruit_interviewer')->get()->toArray();
|
|
|
shuffle($list);
|
|
|
- for ($i = 0; $i < $number1; $i++){
|
|
|
+ $count = $number1;
|
|
|
+ for ($i = 0; $i < $count; $i++){
|
|
|
if(!$list[$i]->status){
|
|
|
$list[] = $list[$i];
|
|
|
unset($list[$i]);
|
|
|
+ $count++;
|
|
|
}
|
|
|
}
|
|
|
$result = array_slice($list, 0, $number1+$number2);
|
|
@@ -1648,6 +1650,7 @@ class IndexController extends WebBaseController
|
|
|
$list = DB::table('recruit_interviewer')->get()->toArray();
|
|
|
shuffle($list);
|
|
|
for ($i = 0; $i < $number1; $i++){
|
|
|
+ dd($list[$i]);
|
|
|
if(!$list[$i]->status){
|
|
|
$list[] = $list[$i];
|
|
|
unset($list[$i]);
|