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
2157e17a
Commit
2157e17a
authored
Oct 31, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户
parent
23daa72c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
UserService.php
application/index/service/UserService.php
+6
-4
No files found.
application/index/service/UserService.php
View file @
2157e17a
...
...
@@ -416,8 +416,9 @@ class UserService
/**
* 查询当前经纪人是否是某个客方的总监
* @param $user_id
* @return bool
* @param $user_agent_id 当前用户客方
* @param $agent_id 当前登录用户
* @return int
*/
public
function
isUserAgentDirector
(
$user_agent_id
,
$agent_id
){
if
(
!
$user_agent_id
){
...
...
@@ -426,8 +427,9 @@ class UserService
if
(
!
$agent_id
){
return
1
;
}
$agent
=
new
AAgents
();
$ccr_agent_data
=
$agent
->
getAgentInfo
(
'name'
,
$operation_id
);
$agent_model
=
new
AAgents
();
$params_
[
"id"
]
=
$user_agent_id
;
$result
=
$agent_model
->
searchAgentsByKeyword
(
"id,store_id,district_id,level"
,
$params_
);
if
((
time
()
<
strtotime
(
$res
[
'protect_time'
])))
{
return
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