作者 赵彬吉

update

@@ -170,8 +170,8 @@ class InquiryController extends BaseController @@ -170,8 +170,8 @@ class InquiryController extends BaseController
170 //非正常登录的 170 //非正常登录的
171 if($this->param['login_source']??0 != 2){ 171 if($this->param['login_source']??0 != 2){
172 //脱敏 172 //脱敏
173 - $item['email'] = email_desensitize($item['email']);  
174 - $item['phone'] = substr($item['phone'], 0, -4) . '****'; 173 + !empty($item['email']) && $item['email'] = email_desensitize($item['email']);
  174 + !empty($item['phone']) && $item['phone'] = substr($item['phone'], 0, -4) . '****';
175 } 175 }
176 176
177 $item['ip_address'] = "{$item['country']}({$item['ip']})"; 177 $item['ip_address'] = "{$item['country']}({$item['ip']})";