diff --git a/app/controller/Donation.php b/app/controller/Donation.php index af09a06..4b8e1f3 100644 --- a/app/controller/Donation.php +++ b/app/controller/Donation.php @@ -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; }