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
af219df2
Commit
af219df2
authored
Aug 28, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
1f42af9e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
Bargain.php
application/api_broker/controller/Bargain.php
+8
-8
BargainService.php
application/api_broker/service/BargainService.php
+1
-1
No files found.
application/api_broker/controller/Bargain.php
View file @
af219df2
...
...
@@ -27,17 +27,17 @@ class Bargain extends Basic
{
$params
=
$this
->
params
;
/*
$params = array(
"submit_agent_id" =>
1
,
"status" =>
0
,//0全部 1未结单 2已结单 3 撤销审核 4已撤销
$params
=
array
(
"submit_agent_id"
=>
93
,
"status"
=>
1
,
//0全部 1未结单 2已结单 3 撤销审核 4已撤销
"is_my_correlation"
=>
1
,
//是否与我相关 0全部 1与我相关
"keyword" => "17717536291",
//
"keyword" => "17717536291",
"page_no"
=>
1
,
"page_size" => 1
5
);
*/
"page_size"
=>
1
0
);
$checkResult
=
$this
->
validate
(
$params
,
"BargainValidate.bargainList"
);
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"
300
"
,
$checkResult
);
return
$this
->
response
(
"
101
"
,
$checkResult
);
}
$pageNo
=
empty
(
$params
[
"page_no"
])
?
1
:
$params
[
"page_no"
];
$pageSize
=
empty
(
$params
[
"page_size"
])
?
15
:
$params
[
"page_size"
];
...
...
@@ -46,7 +46,7 @@ class Bargain extends Basic
$is_my_correlation
=
$params
[
"is_my_correlation"
];
$keyword
=
empty
(
$params
[
"keyword"
])
?
""
:
$params
[
"keyword"
];
$result
=
$this
->
service_
->
getBargainList
(
$pageNo
,
$pageSize
,
$submit_agent_id
,
$status
,
$is_my_correlation
,
$keyword
);
$result
=
$this
->
service_
->
getBargainList
(
$pageNo
,
$pageSize
,
$submit_agent_id
,
$status
,
$is_my_correlation
,
$keyword
);
return
$this
->
response
(
"200"
,
"success"
,
$result
);
}
...
...
application/api_broker/service/BargainService.php
View file @
af219df2
...
...
@@ -73,7 +73,7 @@ class BargainService
if
(
$is_my_correlation
==
1
)
{
$list
=
[];
foreach
(
$result
as
$k
=>
$v
)
{
$father_id
=
$v
[
"father_id"
];
$father_id
=
$v
[
"father_id"
]
==
0
?
$v
[
"id"
]
:
$v
[
"father_id"
]
;
if
(
$father_id
>
0
&&
in_array
(
$father_id
,
$list
))
{
unset
(
$result
[
$k
]);
}
else
{
...
...
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