|
@@ -223,7 +223,7 @@ class Pub extends BaseController
|
|
|
foreach ($data['list'] as &$item) {
|
|
|
$infoAuditDb = new InfoAudit();
|
|
|
$infoData = $infoAuditDb->getItem(["status"=>1,"uid"=>$item["uid"]]);
|
|
|
- $item['is_type_audit'] = !empty($infoData['is_type_audit']) ? $infoData['is_type_audit'] : '';
|
|
|
+ $item['is_type_audit'] = $item['is_type_audit']==1?1:0;
|
|
|
$item['ancestral_place'] = !empty($infoData['ancestral_place']) ? $infoData['ancestral_place'] : '';
|
|
|
}
|
|
|
return app('json')->success($data);
|
|
@@ -319,14 +319,18 @@ class Pub extends BaseController
|
|
|
$rankList = [];
|
|
|
foreach ($list as $key => $value) {
|
|
|
$userInfo = (new UserModel)->where('uid', $value['uid'])->find();
|
|
|
+ $auth = (new InfoAudit)->where('uid',$value['uid'])->find();
|
|
|
$template = $this->getShowTemplateItem($value['uid']);
|
|
|
$rankList[] = [
|
|
|
'rank' => $key + 1,
|
|
|
'uid' => $value['uid'],
|
|
|
- 'nickname' => $userInfo['nickname'],
|
|
|
+ 'name' => $userInfo['name'],
|
|
|
'avatar' => $userInfo['avatar'],
|
|
|
- 'card_look_count' => $value['card_look_count'],
|
|
|
+ 'card_look_count' => $value['card_look_count']*18,
|
|
|
'template' => $template,
|
|
|
+ 'is_type_audit'=>$auth['status']==1?1:0,
|
|
|
+ 'ancestral_place'=>$auth['ancestral_place'],
|
|
|
+ 'auth_info' => $auth->toArray(),
|
|
|
];
|
|
|
}
|
|
|
return app('json')->success($rankList);
|