Commit 899a4b01 authored by zw's avatar zw

首页排序

parent da664cf0
...@@ -106,14 +106,14 @@ class RankingList extends Basic{ ...@@ -106,14 +106,14 @@ class RankingList extends Basic{
public function selectPkSortByTime() public function selectPkSortByTime()
{ {
$params = $this->params; $params = $this->params;
/* $params = array( /* $params = array(
"site_id" => 10001 "site_id" => 10001
);*/ );*/
if (!isset($params["site_id"])) { if (!isset($params["site_id"])) {
return $this->response("101", "请求参数错误"); return $this->response("101", "请求参数错误");
} }
$start_day = date('Y-m-01 00:00:00', strtotime('-3 month')); $start_day = date('Y-m-01 00:00:00', time());
$end_day = date("Y-m-d 23:59:59", strtotime(-date('d') . 'day')); $end_day = date("Y-m-d 23:59:59", time());
$list = $this->service_->totalAgent( $start_day, $end_day,$params["site_id"]); $list = $this->service_->totalAgent( $start_day, $end_day,$params["site_id"]);
if (count($list) > 0) { if (count($list) > 0) {
......
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