@ -2856,3 +2856,20 @@ function getIsTask($user_id){
return $shiftres['id'];
}
function encryption($string) {
//订单隐藏算法
$orderLen = strlen($string);
$strLen = 3;
$hideChar = '';
if($orderLen <=8) {
$strLen = 2;
for($i = 0;$i<$orderLen-$strLen*2;$i++) {
$hideChar .='*';
return substr($string, 0, $strLen) . $hideChar . substr($string, $orderLen-$strLen);
@ -899,6 +899,13 @@ class PromoteController extends BaseController
$query = M('promote', 'tab_')->where($map);
list($records, $pagination, $count) = $this->paginate($query);
foreach ($records as $key => $value) {
$records[$key]['idcard'] = encryption($value['idcard']);
$records[$key]['mobile_phone'] = encryption($value['mobile_phone']);
$ids = array_column($records, 'id');
$countList = [];