From 8948e2cf1ef070af8cdc3d245d7460eb91dee8c0 Mon Sep 17 00:00:00 2001 From: knowpia <9812993@qq.com> Date: Wed, 14 Sep 2022 10:11:34 +0800 Subject: [PATCH] fix bug --- app/controller/Donation.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controller/Donation.php b/app/controller/Donation.php index dc2ed50..203101e 100644 --- a/app/controller/Donation.php +++ b/app/controller/Donation.php @@ -14,7 +14,8 @@ class Donation $result = []; //查询用户信息 $result['userinfo'] = []; - $userinfo = \think\facade\Db::name("student")->where("id",$student_id)->field("id,nickname,identifier,avatar,age,type,disabled as is_disabled,city,school,hot,hot_count")->find(); + $userinfo = Db::name("student")->where("id",$student_id)->field("id,nickname,identifier,avatar,age,type,disabled as is_disabled,city,school,hot,hot_count")->find(); + die; if(!empty($userinfo)){ $result['userinfo'] = $userinfo; }