From 18370dbfc7cf7cc28309fb92be068649e767af62 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Fri, 16 Sep 2022 10:28:08 +0800 Subject: [PATCH] fix bug --- app/controller/Donation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controller/Donation.php b/app/controller/Donation.php index 0a8f214..9ddd560 100644 --- a/app/controller/Donation.php +++ b/app/controller/Donation.php @@ -97,10 +97,10 @@ class Donation if (empty($StudentIds)) { return []; } - print_r($StudentIds); $StudentIds = array_unique($StudentIds); $getAllStudentsMessage = []; - $UserLists = Db::name("student")->where("id", "IN",$StudentIds)->field("nickname")->select()->toArray(); + $UserLists = Db::name("student")->where("id", "IN",$StudentIds)->field("nickname")->select()->toArray(); + print_r($UserLists); foreach ($UserLists as $vo) { $getAllStudentsMessage[$vo['id']] = $vo; }