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
3c792e86
Commit
3c792e86
authored
Nov 07, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
e0678b29
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
20 deletions
+5
-20
ClientService.php
application/api_broker/service/ClientService.php
+1
-4
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+4
-16
No files found.
application/api_broker/service/ClientService.php
View file @
3c792e86
...
@@ -14,18 +14,15 @@ use app\model\UPhoneFollowPp;
...
@@ -14,18 +14,15 @@ use app\model\UPhoneFollowPp;
*/
*/
class
ClientService
class
ClientService
{
{
private
$uPhoneFollowUpModel
;
private
$redis
;
private
$redis
;
private
$day
;
private
$day
;
private
$num
;
private
$num
;
private
$nowTime
;
private
$nowTime
;
const
SAVE_CALL_NUM
=
"save_call_num_"
;
const
SAVE_CALL_NUM
=
"save_call_num_"
;
public
function
__construct
(
$site_id
)
public
function
__construct
()
{
{
$this
->
uPhoneFollowUpModel
=
new
UPhoneFollowPp
(
$site_id
);
$this
->
redis
=
RedisExt
::
getRedis
();
$this
->
redis
=
RedisExt
::
getRedis
();
$this
->
day
=
$this
->
redis
->
get
(
"s_agent_call_day"
);
$this
->
day
=
$this
->
redis
->
get
(
"s_agent_call_day"
);
$this
->
num
=
$this
->
redis
->
get
(
"s_agent_call_number"
);
$this
->
num
=
$this
->
redis
->
get
(
"s_agent_call_number"
);
$this
->
nowTime
=
date
(
"Y-m-d"
,
time
());
$this
->
nowTime
=
date
(
"Y-m-d"
,
time
());
...
...
application/task/controller/PrivacyNumber.php
View file @
3c792e86
...
@@ -56,14 +56,8 @@ class PrivacyNumber
...
@@ -56,14 +56,8 @@ class PrivacyNumber
->
count
(
'id'
);
->
count
(
'id'
);
if
(
empty
(
$num
))
{
if
(
empty
(
$num
))
{
if
(
!
empty
(
$agents_id
))
{
$m_service
=
new
ClientService
();
$site_id
=
Db
::
table
(
'a_agents'
)
->
where
(
'id'
,
$agents_id
)
->
value
(
'site_id'
);
$m_service
->
saveCallNumByUserId
(
$post_data
[
0
][
'users_id'
]);
}
if
(
!
empty
(
$site_id
))
{
$m_service
=
new
ClientService
(
$site_id
);
$m_service
->
saveCallNumByUserId
(
$post_data
[
0
][
'users_id'
]);
}
}
}
}
}
...
@@ -261,14 +255,8 @@ class PrivacyNumber
...
@@ -261,14 +255,8 @@ class PrivacyNumber
$str
=
date
(
'Y-m-d h:i:s'
)
.
' 容联云话单'
.
var_export
(
$params
,
true
);
$str
=
date
(
'Y-m-d h:i:s'
)
.
' 容联云话单'
.
var_export
(
$params
,
true
);
if
(
$params
[
'duration'
]
>
0
&&
$date
[
'users_id'
])
{
if
(
$params
[
'duration'
]
>
0
&&
$date
[
'users_id'
])
{
if
(
!
empty
(
$agents_id
))
{
$m_service
=
new
ClientService
();
$site_id
=
Db
::
table
(
'a_agents'
)
->
where
(
'id'
,
$agents_id
)
->
value
(
'site_id'
);
$m_service
->
saveCallNumByUserId
(
$date
[
'users_id'
]);
}
if
(
!
empty
(
$site_id
))
{
$m_service
=
new
ClientService
(
$site_id
);
$m_service
->
saveCallNumByUserId
(
$date
[
'users_id'
]);
}
}
}
Log
::
write
(
$str
,
'rongBilledInformUrl'
);
//记录日志
Log
::
write
(
$str
,
'rongBilledInformUrl'
);
//记录日志
return
json_encode
([
"statusCode"
=>
'000000'
,
'msg'
=>
'接收成功'
]);
return
json_encode
([
"statusCode"
=>
'000000'
,
'msg'
=>
'接收成功'
]);
...
...
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