Commit f3bb37ab authored by zw's avatar zw

pk

parent 3b3e3eee
......@@ -22,11 +22,11 @@ class RankingList extends Basic{
public function getRandKingList(){
$params = $this->params;
/* if(empty($params["position"]) || $params["position"] < 0){
if(empty($params["position"]) || $params["position"] < 0 || $params["position"] > 5){
return $this->response("101","请求参数错误");
}*/
}
$result = $this->service_->RankingList(0,"10001");
if(count($result["list"]) > 0){
if(count($result) > 0){
return $this->response("200","success",$result);
}
}
......
......@@ -62,7 +62,8 @@ class Basic extends Controller
'index/bargainInfo',
'index/getSiteList',
'index/getAllDisc',
'index/getAgentGroupSite'
'index/getAgentGroupSite',
'index/getRandKingList',
);
/**
......
......@@ -81,7 +81,7 @@ class RankingListService
$sort_arr = $this->getSort($param_now);
$result[$index]= $sort_arr;
}
dump($result);
return $result;
}
......
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