Commit 66a4c136 authored by zhuwei's avatar zhuwei

1

parent 4bb9aff0
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment