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
73b4d464
Commit
73b4d464
authored
Mar 07, 2018
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单搜索
parent
77d4b960
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
OrderLog.php
application/api_broker/controller/OrderLog.php
+4
-4
OrderLogService.php
application/api_broker/service/OrderLogService.php
+5
-0
No files found.
application/api_broker/controller/OrderLog.php
View file @
73b4d464
...
...
@@ -266,11 +266,11 @@ class OrderLog extends Basic
public
function
searchOrder
()
{
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"type"
=>
3
,
//1.客户姓名 2.报备人电话 3.报备人姓名 4.商铺名称 5.商铺地址
"agent_id"=>
1
,
"search_keyword" => "1
23
"
);
*/
"agent_id"
=>
630
,
"search_keyword"
=>
"1"
);
if
(
!
isset
(
$params
[
"type"
])
||
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"search_keyword"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
...
...
application/api_broker/service/OrderLogService.php
View file @
73b4d464
...
...
@@ -308,7 +308,11 @@ class OrderLogService
$orderModel
=
new
OrderModel
();
$result
=
$orderModel
->
searchOrder
(
$field
,
$condition
);
$ids_str
=
""
;
if
(
count
(
$result
)
<=
0
){
return
null
;
}
else
{
foreach
(
$result
as
$k
=>
$v
){
$result
[
$k
][
"user_phone"
]
=
preg_replace
(
'/(\d{3})\d{4}(\d{4})/'
,
'$1****$2'
,
$v
[
"user_phone"
]);
$ids_str
.=
$v
[
"id"
]
.
","
;
...
...
@@ -329,6 +333,7 @@ class OrderLogService
}
return
$result
;
}
}
public
function
getBargainList
(
$params
){
...
...
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