|
@@ -341,9 +341,9 @@ class Pub extends BaseController
|
|
|
'avatar' => $userInfo['avatar'],
|
|
|
'card_look_count' => $value['ip_count'],
|
|
|
'template' => $template,
|
|
|
- 'is_type_audit'=>$auth['status']==1?1:0,
|
|
|
- 'ancestral_place'=>$auth['ancestral_place'],
|
|
|
- 'auth_info' => $auth->toArray(),
|
|
|
+ 'is_type_audit' => $auth && $auth['status'] == 1 ? 1 : 0,
|
|
|
+ 'ancestral_place' => $auth ? $auth['ancestral_place'] : '',
|
|
|
+ 'auth_info' => $auth ? $auth->toArray() : [],
|
|
|
'user_work_type_id' => $user_work_type_title['title'],
|
|
|
];
|
|
|
}
|