fix bug
This commit is contained in:
@@ -33,12 +33,21 @@ class Donation
|
|||||||
|
|
||||||
foreach($list as $vo){
|
foreach($list as $vo){
|
||||||
$result['lastIndex'] = $vo['id'];
|
$result['lastIndex'] = $vo['id'];
|
||||||
|
if(!empty($users[$vo["user_id"]]['nickname'])) {
|
||||||
$result['donation_list'][] = [
|
$result['donation_list'][] = [
|
||||||
"nickname"=>$users[$vo["user_id"]]['nickname'],
|
"nickname" => $users[$vo["user_id"]]['nickname'],
|
||||||
"identity"=>empty($users[$vo["user_id"]]['shiyou_id'])?1:0,
|
"identity" => empty($users[$vo["user_id"]]['shiyou_id']) ? 1 : 0,
|
||||||
"avatar"=>empty($users[$vo['user_id']]['avatar'])?'':$users[$vo['user_id']]['avatar'],
|
"avatar" => empty($users[$vo['user_id']]['avatar']) ? '' : $users[$vo['user_id']]['avatar'],
|
||||||
"amount"=>$vo['amount'],
|
"amount" => $vo['amount'],
|
||||||
];
|
];
|
||||||
|
}else{
|
||||||
|
$result['donation_list'][] = [
|
||||||
|
"nickname" => "假数据",
|
||||||
|
"identity" => 1,
|
||||||
|
"avatar" => "http://hphb-cdn.uzchain.tech/r/6327c6b20858d97829.png",
|
||||||
|
"amount" => 999999,
|
||||||
|
];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if(count($list)<env("PAGE_COUNT")){
|
if(count($list)<env("PAGE_COUNT")){
|
||||||
$result["lastIndex"] = 0;
|
$result["lastIndex"] = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user