This commit is contained in:
knowpia
2022-09-16 10:24:30 +08:00
parent b9b34c6a50
commit dd9a3e9ccf

View File

@@ -66,10 +66,13 @@ class Donation
$result['list'] = []; $result['list'] = [];
echo $userid; echo $userid;
$list = Db::name("order")->where(['user_id'=>$userid,'status'=>1])->where($where)->order("id desc")->limit(env("page_count"))->select()->toArray(); $list = Db::name("order")->where(['user_id'=>$userid,'status'=>1])->where($where)->order("id desc")->limit(env("page_count"))->select()->toArray();
print_r($list);
if(!empty($list)){ if(!empty($list)){
$appUser = getAllUsersMessage($list,"user_id","id,nickname"); $appUser = getAllUsersMessage($list,"user_id","id,nickname");
$studentUser = $this->getStudents($list); $studentUser = $this->getStudents($list);
print_r($appUser);
print_r($studentUser);
foreach ($list as $key => $vo) { foreach ($list as $key => $vo) {
$result['lastIndex'] = $vo['id']; $result['lastIndex'] = $vo['id'];
$result["list"][] = [ $result["list"][] = [