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