Commit 45801c42 authored by zw's avatar zw

pk

parent c302622a
...@@ -101,6 +101,7 @@ class RankingList extends Basic{ ...@@ -101,6 +101,7 @@ class RankingList extends Basic{
} }
$result = $this->service_->RankingList( $agent_info["position"],$this->siteId); $result = $this->service_->RankingList( $agent_info["position"],$this->siteId);
$agent_id = $params["agent_id"]; $agent_id = $params["agent_id"];
$data = [];
foreach ($result as $key=>$value){ foreach ($result as $key=>$value){
$is_exits = false; $is_exits = false;
foreach ($value as $item){ foreach ($value as $item){
...@@ -110,10 +111,14 @@ class RankingList extends Basic{ ...@@ -110,10 +111,14 @@ class RankingList extends Basic{
} }
if(!$is_exits){ if(!$is_exits){
unset($result[$key]); unset($result[$key]);
}else{
$data["list"] = $value;
$data["grade"] = $key;
} }
} }
$data["position"] = $agent_info["position"];
if(count($result) > 0){ if(count($result) > 0){
return $this->response("200","success",$result); return $this->response("200","success",$data);
} }
return $this->response("200","null"); return $this->response("200","null");
} }
......
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