This commit is contained in:
knowpia
2022-09-16 13:46:39 +08:00
parent 24816ad00c
commit 1050a87759

View File

@@ -81,6 +81,7 @@ class Donation
"avatar"=>$studentUser[$vo['student_id']]['avatar'],
"type"=>$studentUser[$vo['student_id']]['type'],
"is_disabled"=>$studentUser[$vo['student_id']]['is_disabled'],
"age"=>$studentUser[$vo['student_id']]['age'],
];
}
if (count($list) < env("PAGE_COUNT")) {
@@ -100,7 +101,7 @@ class Donation
}
$StudentIds = array_unique($StudentIds);
$getAllStudentsMessage = [];
$UserLists = Db::name("student")->where("id", "IN",$StudentIds)->field("id,nickname,avatar,type,disabled as is_disabled")->select()->toArray();
$UserLists = Db::name("student")->where("id", "IN",$StudentIds)->field("id,nickname,age,avatar,type,disabled as is_disabled")->select()->toArray();
foreach ($UserLists as $vo) {
$getAllStudentsMessage[$vo['id']] = $vo;
}