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
1779364c
Commit
1779364c
authored
Mar 07, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单详情主信息返回reportid
parent
7191e213
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
OrderLog.php
application/api_broker/controller/OrderLog.php
+4
-4
OrderLogService.php
application/api_broker/service/OrderLogService.php
+2
-1
No files found.
application/api_broker/controller/OrderLog.php
View file @
1779364c
...
...
@@ -147,13 +147,13 @@ class OrderLog extends Basic
{
$params
=
$this
->
params
;
/*
if (!isset($params["submit_agent_id"]) || !isset($params["report_id"]) || !isset($params["order_id"]) || !isset($params["order_no"])
if
(
!
isset
(
$params
[
"submit_agent_id"
])
||
!
isset
(
$params
[
"report_id"
])
||
!
isset
(
$params
[
"order_id"
])
||
!
isset
(
$params
[
"order_no"
])
||
!
isset
(
$params
[
"trade_type"
])
||
!
isset
(
$params
[
"price"
])
||
!
isset
(
$params
[
"commission"
])
||
!
isset
(
$params
[
"commission_arr"
][
0
][
"role"
])
||
!
isset
(
$params
[
"commission_arr"
][
0
][
"agent_id"
])
||
!
isset
(
$params
[
"commission_arr"
][
0
][
"scale"
])
||
!
isset
(
$params
[
"commission_arr"
][
0
][
"scale_fee"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
*/
$params
=
array
(
}
/*
$params = array(
"submit_agent_id" => 1,//申请经纪人id
"report_id" => 1,//报备id
"order_id" => 1, //关联order表id
...
...
@@ -170,7 +170,7 @@ class OrderLog extends Basic
"commission_arr" => [ [ "role" => 10, "agent_id" => 10, "scale" => 10, "scale_fee" => 1222 ],
[ "role" => 11, "agent_id" => 12, "scale" => 13, "scale_fee" => 1112 ] ],
);
);
*/
$is_ok
=
$this
->
service_
->
addBargain
(
$params
[
"submit_agent_id"
],
$params
[
"report_id"
],
$params
[
"order_id"
],
$params
[
"order_no"
],
$params
[
"trade_type"
],
$params
[
"price"
],
$params
[
"commission"
],
$params
[
"commission_arr"
]);
...
...
application/api_broker/service/OrderLogService.php
View file @
1779364c
...
...
@@ -151,7 +151,8 @@ class OrderLogService
*/
public
function
selectOrderDetail
(
$where_
){
$orderModel
=
new
OrderModel
();
$field
=
"a.id,a.order_no,a.house_id,a.house_title,b.user_id,c.user_nick,c.user_phone,c.user_pic,c.sex"
;
$field
=
"a.id,a.order_no,a.house_id,a.house_title,b.id as report_id,b.user_id,c.user_nick,c.user_phone,
c.user_pic,c.sex"
;
$result
=
$orderModel
->
selectOrderDetail
(
$field
,
$where_
);
foreach
(
$result
as
$k
=>
$v
){
$result
[
$k
][
"user_phone"
]
=
preg_replace
(
'/(\d{3})\d{4}(\d{4})/'
,
'$1****$2'
,
$v
[
"user_phone"
]);
...
...
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