...
|
...
|
@@ -158,10 +158,10 @@ class StoreInform extends Backend |
|
|
// 用户去重
|
|
|
$user_id_arr = array_unique($user_id_arr);
|
|
|
// 随机红包数量用户
|
|
|
$new_user_id_arr = [];
|
|
|
if(count($user_id_arr) > $row->number){
|
|
|
$random_keys = array_rand($user_id_arr,$row->number);
|
|
|
if(is_array($random_keys)){
|
|
|
$new_user_id_arr = [];
|
|
|
foreach ($random_keys as $rand) {
|
|
|
$new_user_id_arr[] = $user_id_arr[$rand];
|
|
|
}
|
...
|
...
|
|