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
213439fe
Commit
213439fe
authored
Nov 06, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
c5328ca8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Bargain.php
application/api_broker/controller/Bargain.php
+1
-2
BargainService.php
application/api_broker/service/BargainService.php
+1
-0
No files found.
application/api_broker/controller/Bargain.php
View file @
213439fe
...
@@ -42,6 +42,7 @@ class Bargain extends Basic
...
@@ -42,6 +42,7 @@ class Bargain extends Basic
"page_size" => 10
"page_size" => 10
);*/
);*/
$checkResult
=
$this
->
validate
(
$params
,
"BargainValidate.bargainList"
);
$checkResult
=
$this
->
validate
(
$params
,
"BargainValidate.bargainList"
);
if
(
true
!==
$checkResult
)
{
if
(
true
!==
$checkResult
)
{
return
$this
->
response
(
"101"
,
$checkResult
);
return
$this
->
response
(
"101"
,
$checkResult
);
...
@@ -52,12 +53,10 @@ class Bargain extends Basic
...
@@ -52,12 +53,10 @@ class Bargain extends Basic
$status
=
$params
[
"status"
];
$status
=
$params
[
"status"
];
$is_my_correlation
=
$params
[
"is_my_correlation"
];
$is_my_correlation
=
$params
[
"is_my_correlation"
];
$keyword
=
empty
(
$params
[
"keyword"
])
?
""
:
$params
[
"keyword"
];
$keyword
=
empty
(
$params
[
"keyword"
])
?
""
:
$params
[
"keyword"
];
/*业务员不允许点击查看全部成交报告 start*/
/*业务员不允许点击查看全部成交报告 start*/
$agent_field
=
"a.level"
;
$agent_field
=
"a.level"
;
$agent_res
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$agent_field
,
[
"agent_id"
=>
$submit_agent_id
]);
$agent_res
=
$this
->
agentModel
->
getAgentsInfoByAgentId
(
$agent_field
,
[
"agent_id"
=>
$submit_agent_id
]);
if
((
$agent_res
[
0
][
'level'
]
==
10
)
&&
(
$is_my_correlation
==
0
)){
if
((
$agent_res
[
0
][
'level'
]
==
10
)
&&
(
$is_my_correlation
==
0
)){
Log
::
write
(
'暂无权限'
,
'7151'
);
//记录日志
return
$this
->
response
(
"200"
,
"暂无权限!"
);
return
$this
->
response
(
"200"
,
"暂无权限!"
);
}
}
...
...
application/api_broker/service/BargainService.php
View file @
213439fe
...
@@ -36,6 +36,7 @@ class BargainService
...
@@ -36,6 +36,7 @@ class BargainService
}
else
{
}
else
{
$condition
[
"father_id"
]
=
0
;
$condition
[
"father_id"
]
=
0
;
}
}
switch
(
$status
)
{
switch
(
$status
)
{
case
1
:
case
1
:
$condition
[
"account_statement"
]
=
0
;
$condition
[
"account_statement"
]
=
0
;
...
...
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