fix bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user