owners_901
This commit is contained in:
@@ -115,11 +115,12 @@ class Owners extends HD_Controller
|
||||
$str_county_ids = implode(',', array_unique(array_column($res, 'county_id')));
|
||||
$map_countys = $this->mdArea->map('county_id', 'city_name,county_name', ["county_id in({$str_county_ids})" => null]);
|
||||
foreach ($res as $key => $val) {
|
||||
if (SUPER_ADMIN == $this->role || $this->role == 35) {
|
||||
$mobile_sub = $val['mobile'];
|
||||
} else {
|
||||
$mobile_sub = $val['mobile'] ? substr_replace($val['mobile'], '*****', 0, 5) : '';
|
||||
}
|
||||
// if (SUPER_ADMIN == $this->role || $this->role == 35) {
|
||||
// $mobile_sub = $val['mobile'];
|
||||
// } else {
|
||||
// $mobile_sub = $val['mobile'] ? substr_replace($val['mobile'], '*****', 0, 5) : '';
|
||||
// }
|
||||
$mobile_sub = $val['mobile'];
|
||||
$sex = $car_name = $city_name = '';
|
||||
if ($val['sex']) {
|
||||
$sex = $val['sex'] == 1 ? '男' : '女';
|
||||
@@ -170,11 +171,12 @@ class Owners extends HD_Controller
|
||||
return $this->show_json(SYS_CODE_FAIL, '车主不存在!');
|
||||
}
|
||||
//用户信息
|
||||
if (SUPER_ADMIN == $this->role || 35 == $this->role) {
|
||||
$mobile_sub = $row['mobile'];
|
||||
} else {
|
||||
$mobile_sub = $row['mobile'] ? substr_replace($row['mobile'], '*****', 0, 5) : '';
|
||||
}
|
||||
// if (SUPER_ADMIN == $this->role || 35 == $this->role) {
|
||||
// $mobile_sub = $row['mobile'];
|
||||
// } else {
|
||||
// $mobile_sub = $row['mobile'] ? substr_replace($row['mobile'], '*****', 0, 5) : '';
|
||||
// }
|
||||
$mobile_sub = $row['mobile'];
|
||||
$info = $row;
|
||||
$info['mobile'] = $mobile_sub;
|
||||
$info['edit_type'] = 0;
|
||||
|
||||
Reference in New Issue
Block a user