|
@@ -47,6 +47,7 @@ class GiftLevel extends BaseModel
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
public function get_group_user($id, $init = true, $members = null){
|
|
public function get_group_user($id, $init = true, $members = null){
|
|
|
|
|
+ @file_put_contents('quanju2.txt', "-123\r\n", 8);
|
|
|
if ($init) {
|
|
if ($init) {
|
|
|
$us = \app\common\model\user\User::column('spread_uid', $id);
|
|
$us = \app\common\model\user\User::column('spread_uid', $id);
|
|
|
$members = [];
|
|
$members = [];
|
|
@@ -57,10 +58,12 @@ class GiftLevel extends BaseModel
|
|
|
$id = [$id];
|
|
$id = [$id];
|
|
|
}
|
|
}
|
|
|
$arr = array();
|
|
$arr = array();
|
|
|
|
|
+ @file_put_contents('quanju2.txt', "-456\r\n", 8);
|
|
|
foreach ($id as $v) {
|
|
foreach ($id as $v) {
|
|
|
$child = $members[$v] ?? [];
|
|
$child = $members[$v] ?? [];
|
|
|
$arr = array_merge($arr, $child);
|
|
$arr = array_merge($arr, $child);
|
|
|
}
|
|
}
|
|
|
|
|
+ @file_put_contents('quanju2.txt', "-789\r\n", 8);
|
|
|
if (count($arr)) {
|
|
if (count($arr)) {
|
|
|
return array_merge($arr, $this->get_group_user($arr, false, $members));
|
|
return array_merge($arr, $this->get_group_user($arr, false, $members));
|
|
|
} else {
|
|
} else {
|