姓名只留姓

master
sunke 5 years ago
parent 71e02a4add
commit 7ac22521dd

@ -2199,7 +2199,8 @@ class DownloadController extends BaseController {
if($value1['status'] == 2) { if($value1['status'] == 2) {
$value1['promotestatus'] = "冻结中"; $value1['promotestatus'] = "冻结中";
} }
$value1['account'] = substr_replace($value1['account'],'****',2); $realname = mb_strlen($value1['real_name'],'utf-8') == 2 ? mb_substr($value1['real_name'],0,1,'utf-8').'*':mb_substr($value1['real_name'],0,1,'utf-8').'**';
$value1['real_name'] = $realname;
$value1['idcard'] = substr_replace($value1['idcard'],'************',3,12); $value1['idcard'] = substr_replace($value1['idcard'],'************',3,12);
$value1['create_time'] = date('Y-m-d H:i:s',$value1['create_time']); $value1['create_time'] = date('Y-m-d H:i:s',$value1['create_time']);
$xlsData[] = $value1; $xlsData[] = $value1;
@ -3087,7 +3088,7 @@ class DownloadController extends BaseController {
$records[] = [ $records[] = [
'id' => $parent['id'], 'id' => $parent['id'],
'account' => $parent['account'], 'account' => $parent['account'],
'real_name' => $parent['real_name'], 'real_name' => mb_strlen($parent['real_name'],'utf-8') == 2 ? mb_substr($parent['real_name'],0,1,'utf-8').'*':mb_substr($parent['real_name'],0,1,'utf-8').'**',
'level' => $parent['level'], 'level' => $parent['level'],
'create_role_count' => $selfCreateRoleCountList[$parent['id']], 'create_role_count' => $selfCreateRoleCountList[$parent['id']],
'create_role_user_count' => $selfCreateRoleUserCountList[$parent['id']], 'create_role_user_count' => $selfCreateRoleUserCountList[$parent['id']],
@ -3109,7 +3110,7 @@ class DownloadController extends BaseController {
$records[] = [ $records[] = [
'id' => $id, 'id' => $id,
'account' => $promote['account'], 'account' => $promote['account'],
'real_name' => $promote['real_name'], 'real_name' => mb_strlen($promote['real_name'],'utf-8') == 2 ? mb_substr($promote['real_name'],0,1,'utf-8').'*':mb_substr($promote['real_name'],0,1,'utf-8').'**',
'level' => $promote['level'], 'level' => $promote['level'],
'create_role_count' => $createRoleCountList[$id], 'create_role_count' => $createRoleCountList[$id],
'create_role_user_count' => $createRoleUserCountList[$id], 'create_role_user_count' => $createRoleUserCountList[$id],

@ -972,6 +972,8 @@ class PromoteController extends BaseController
list($records, $pagination, $count) = $this->paginate($query); list($records, $pagination, $count) = $this->paginate($query);
foreach ($records as $key => $value) { foreach ($records as $key => $value) {
$realname = mb_strlen($value['real_name'],'utf-8') == 2 ? mb_substr($value['real_name'],0,1,'utf-8').'*':mb_substr($value['real_name'],0,1,'utf-8').'**';
$records[$key]['real_name'] = $realname;
$records[$key]['idcard'] = encryption($value['idcard']); $records[$key]['idcard'] = encryption($value['idcard']);
$records[$key]['mobile_phone'] = encryption($value['mobile_phone']); $records[$key]['mobile_phone'] = encryption($value['mobile_phone']);
} }

@ -2112,7 +2112,7 @@ class QueryController extends BaseController
$records[] = [ $records[] = [
'id' => $parent['id'], 'id' => $parent['id'],
'account' => $parent['account'], 'account' => $parent['account'],
'real_name' => $parent['real_name'], 'real_name' => mb_strlen($parent['real_name'],'utf-8') == 2 ? mb_substr($parent['real_name'],0,1,'utf-8').'*':mb_substr($parent['real_name'],0,1,'utf-8').'**',
'level' => $parent['level'], 'level' => $parent['level'],
'create_role_count' => $selfCreateRoleCountList[$parent['id']], 'create_role_count' => $selfCreateRoleCountList[$parent['id']],
'create_role_user_count' => $selfCreateRoleUserCountList[$parent['id']], 'create_role_user_count' => $selfCreateRoleUserCountList[$parent['id']],
@ -2134,7 +2134,7 @@ class QueryController extends BaseController
$records[] = [ $records[] = [
'id' => $id, 'id' => $id,
'account' => $promote['account'], 'account' => $promote['account'],
'real_name' => $promote['real_name'], 'real_name' => mb_strlen($promote['real_name'],'utf-8') == 2 ? mb_substr($promote['real_name'],0,1,'utf-8').'*':mb_substr($promote['real_name'],0,1,'utf-8').'**',
'level' => $promote['level'], 'level' => $promote['level'],
'create_role_count' => $createRoleCountList[$id], 'create_role_count' => $createRoleCountList[$id],
'create_role_user_count' => $createRoleUserCountList[$id], 'create_role_user_count' => $createRoleUserCountList[$id],

@ -352,11 +352,14 @@ class SafeController extends BaseController{
} */ } */
$promoteInfo = ""; $promoteInfo = "";
$address = json_decode($rs['address'],false)[1]; $address = json_decode($rs['address'],false)[1];
$realname = mb_strlen($rs['real_name'],'utf-8') == 2 ? mb_substr($rs['real_name'],0,1,'utf-8').'*':mb_substr($rs['real_name'],0,1,'utf-8').'**';
$this->assign('addr',$address); $this->assign('addr',$address);
$this->assign('ver_status',$rs['ver_status']); $this->assign('ver_status',$rs['ver_status']);
$this->assign('rs',$rs); $this->assign('rs',$rs);
$this->assign('idcard',encryption($rs['idcard']));
$this->assign('real_name',$realname);
$this->assign('promoteInfo',$promoteInfo); $this->assign('promoteInfo',$promoteInfo);
$this->assign('tel',$rs['mobile_phone']); $this->assign('tel',encryption($rs['mobile_phone']));
$this->display(); $this->display();
} }

@ -121,10 +121,10 @@
<div class="zizhi"> <div class="zizhi">
<div class="line_title">资质认证</div> <div class="line_title">资质认证</div>
<div class="line_text"> <div class="line_text">
真实姓名: {$rs['real_name']} 真实姓名: {$real_name}
</div> </div>
<div class="line_text"> <div class="line_text">
身份证号码: {$rs['idcard']} 身份证号码: {$idcard}
</div> </div>
<div class="line_text"> <div class="line_text">
身份证扫描: <span style="color:#449acb">已认证<span> 身份证扫描: <span style="color:#449acb">已认证<span>

Loading…
Cancel
Save