|
@@ -219,7 +219,13 @@ class Pub extends BaseController
|
|
|
$post["page"] = $post["page"]<=0 ? 1 : (int)$post["page"];
|
|
|
$post["status"] = 1;
|
|
|
$data = (new UserModel)->getApiWorkerList($post);
|
|
|
-
|
|
|
+
|
|
|
+ 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'] : 0;
|
|
|
+ $item['ancestral_place'] = !empty($infoData['ancestral_place']) ? $infoData['ancestral_place'] : '';
|
|
|
+ }
|
|
|
return app('json')->success($data);
|
|
|
}
|
|
|
|