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
3391084c
Commit
3391084c
authored
Feb 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
阿里大于回调,额外增加经纪人id和用户的id
parent
1ebea9fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+10
-6
No files found.
application/task/controller/PrivacyNumber.php
View file @
3391084c
<?php
/**
* Created by PhpStorm.
* User:
fuju
* User:
hu jun
* Date: 2018/2/12
* Time: 10:24
*/
namespace
app\task\controller
;
use
app\model\AliyunSecretReport
;
use
app\model\SecretReport
;
use
think\Db
;
use
think\Log
;
...
...
@@ -23,14 +22,18 @@ class PrivacyNumber
*/
public
function
addReport
()
{
$post_data
=
Request
::
instance
()
->
param
();
$report
=
new
SecretReport
();
$post_data
[
0
][
'report_id'
]
=
$post_data
[
0
][
'id'
];
unset
(
$post_data
[
0
][
'id'
]);
unset
(
$post_data
[
0
][
'id'
]);
//阿里大于返回是的id改为report_id
if
(
$post_data
[
0
][
'phone_no'
])
{
$post_data
[
0
][
'agents_id'
]
=
Db
::
table
(
'a_agents'
)
->
where
(
'phone'
,
$post_data
[
0
][
'phone_no'
])
->
value
(
'id'
);
$post_data
[
0
][
'agents_id'
]
=
Db
::
table
(
'agents'
)
->
where
(
'phone'
,
$post_data
[
0
][
'phone_no'
])
->
value
(
'id'
);
$post_data
[
0
][
'users_id'
]
=
Db
::
table
(
'u_users'
)
->
where
(
'user_phone'
,
$post_data
[
0
][
'peer_no'
])
->
value
(
'id'
);
}
$report
=
new
SecretReport
();
$report
->
allowField
(
true
)
->
save
(
$post_data
[
0
]);
Log
::
write
(
serialize
(
$post_data
[
0
]),
'AliyunSecretReport'
);
//记录日志
Log
::
write
(
serialize
(
$post_data
[
0
]),
'AliYunSecretReport'
);
//记录日志
return
json_encode
([
'code'
=>
0
,
'msg'
=>
'接收成功'
]);
}
}
\ No newline at end of file
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