Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
e2d07812
Commit
e2d07812
authored
Aug 22, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通话记录显示房东手机号
parent
03d90da2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
CallPhoneService.php
application/api_broker/service/CallPhoneService.php
+1
-1
CellPhone.php
application/index/controller/CellPhone.php
+2
-1
SecretReport.php
application/model/SecretReport.php
+8
-2
No files found.
application/api_broker/service/CallPhoneService.php
View file @
e2d07812
...
...
@@ -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
;
...
...
application/index/controller/CellPhone.php
View file @
e2d07812
...
...
@@ -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'
]))
{
...
...
application/model/SecretReport.php
View file @
e2d07812
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment