Commit e2d07812 authored by hujun's avatar hujun

通话记录显示房东手机号

parent 03d90da2
......@@ -360,7 +360,7 @@ class CallPhoneService
{
$m_report = new SecretReport();
$report_data['phone_no'] = $this->phone_a;
$report_data['secret_no'] = $this->phone_b;
$report_data['secret_no'] = '';
$report_data['peer_no'] = $this->phone_b;
$report_data['call_type'] = 1;
$report_data['record_down'] = 3;
......
......@@ -39,7 +39,8 @@ class CellPhone extends Basic
$pageSize = empty($this->params['pageSize']) ? 10 : $this->params['pageSize'];
$report = new SecretReport();
$field = 'agents_id,users_id,call_type,call_time,time,voice_file,c.user_status,a.id,a.create_time,a.type,secret_no,c.id as user_id,c.agent_id as c_agent_id,c.vip';
$field = 'agents_id,users_id,call_type,call_time,time,voice_file,c.user_status,a.id,a.create_time,a.type,
a.phone_no,a.secret_no,c.id as user_id,c.agent_id as c_agent_id,c.vip,a.peer_no,a.create_time';
$where = [];
if (!empty($this->params['start_date'])) {
......
......@@ -40,7 +40,7 @@ class SecretReport extends BaseModel
$result[$k] = $v;
if (empty($v['agents_id'])) {
$result[$k]['agents_name'] = "";
$result[$k]['agents_name'] = $v['phone_no'];
} else {
$agents_data = Db::table('a_agents')->field('name,store_id,phone')->where('id',$v['agents_id'])->find();
// $store = new AStore();
......@@ -52,7 +52,7 @@ class SecretReport extends BaseModel
if ($v->users_id) {
$user_data = Db::table('u_users')->field('user_name,user_phone')->where('id',$v->users_id)->find();
$user_data['user_name'] = empty($user_data['user_name']) ? '?.?' : $user_data['user_name'];
$result[$k]['user_name'] = $user_data['user_name'] .'-'. hide_customer_phone($user_data['user_phone']);
$result[$k]['user_name'] = $user_data['user_name'] .'-'. substr_replace($user_data['user_phone'],'****',3,4);
$where_follow['user_id'] = $v->users_id;
$where_follow['type'] = 0;
$where_follow['agent_id'] = $v['agents_id'];
......@@ -60,6 +60,8 @@ class SecretReport extends BaseModel
} else {
$result[$k]['user_nick'] = "";
$result[$k]['content'] = "";
$result[$k]['user_name'] = substr_replace($v['peer_no'], '****',3, 4);
unset($data[$k]['peer_no']);
}
if ($v->voice_file) {
......@@ -89,6 +91,10 @@ class SecretReport extends BaseModel
} else {
$result[$k]['price'] = 0;
}
if (empty($v['call_time'])) {
$result[$k]['call_time'] = $v['create_time'];
}
}
return $result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment