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
da6e8aa7
Commit
da6e8aa7
authored
Aug 28, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回调id判断
parent
bcf92f77
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+10
-2
No files found.
application/task/controller/PrivacyNumber.php
View file @
da6e8aa7
...
@@ -46,8 +46,16 @@ class PrivacyNumber
...
@@ -46,8 +46,16 @@ class PrivacyNumber
$report
->
allowField
(
true
)
->
save
(
$post_data
[
0
]);
$report
->
allowField
(
true
)
->
save
(
$post_data
[
0
]);
if
(
$call_time
>
0
)
{
if
(
$call_time
>
0
)
{
$m_service
=
new
ClientService
();
$date
=
date
(
'Y-m-d'
);
$m_service
->
saveCallNumByUserId
(
$post_data
[
0
][
'users_id'
]);
$num
=
Db
::
table
(
'aliyun_secret_report'
)
->
where
(
'phone_no'
,
$post_data
[
0
][
'phone_no'
])
->
where
(
'peer_no'
,
$post_data
[
0
][
'peer_no'
])
->
where
(
'create_time'
,
'between'
,
[
$date
.
' 00:00:00'
,
$date
.
' 23:59:59'
])
->
count
(
'id'
);
if
(
empty
(
$num
))
{
$m_service
=
new
ClientService
();
$m_service
->
saveCallNumByUserId
(
$post_data
[
0
][
'users_id'
]);
}
}
}
Log
::
write
(
json_encode
(
$post_data
[
0
]),
'AliYunSecretReport'
);
//记录日志
Log
::
write
(
json_encode
(
$post_data
[
0
]),
'AliYunSecretReport'
);
//记录日志
return
json_encode
([
'code'
=>
0
,
'msg'
=>
'接收成功'
]);
return
json_encode
([
'code'
=>
0
,
'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