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
66a4c136
Commit
66a4c136
authored
Feb 12, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4bb9aff0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
28 deletions
+1
-28
ImageDepot.php
application/index/controller/ImageDepot.php
+1
-28
No files found.
application/index/controller/ImageDepot.php
View file @
66a4c136
...
...
@@ -178,39 +178,12 @@ class ImageDepot extends Basic
public
function
ceshi
()
{
// $we_chat_last_notice_lime = time();
// return $this->response("200", "成功",$we_chat_last_notice_lime);
$getAgentIds
=
$this
->
getAgentIds
(
50
);
dump
(
$getAgentIds
);
}
public
function
getAgentIds
(
$agent_id
){
$m_agent
=
new
AAgents
();
$a_res_level
=
$m_agent
->
getAgentFieldById
(
$agent_id
,
'level'
);
dump
(
$a_res_level
);
if
(
$a_res_level
==
20
){
//查询总监下面门店的所有经纪人
$a_res_store_id
=
$m_agent
->
getAgentFieldById
(
$agent_id
,
'store_id'
);
$params
=
[];
$params
[
"store_id"
]
=
$a_res_store_id
;
$params
[
"status"
]
=
0
;
//只查询正常状态的经纪人
$agentsArr
=
$m_agent
->
getAgentsByStoreId
(
$params
);
if
(
count
(
$agentsArr
)
>
0
)
{
$agent_ids
=
""
;
foreach
(
$agentsArr
as
$k
=>
$v
)
{
$agent_ids
.=
$v
[
"id"
]
.
","
;
}
$agent_ids
=
rtrim
(
$agent_ids
,
","
);
//经纪人ID集合
}
//查询总监下面门店的所有经纪人 end
return
$agent_ids
;
}
else
{
return
$agent_id
;
}
}
...
...
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