Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into bate
正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -30,6 +30,7 @@ class MonthReportController extends BaseController | @@ -30,6 +30,7 @@ class MonthReportController extends BaseController | ||
| 30 | public function getMonth(){ | 30 | public function getMonth(){ |
| 31 | $monthCountModel = new MonthCount(); | 31 | $monthCountModel = new MonthCount(); |
| 32 | $this->map['project_id'] = $this->user['project_id']; | 32 | $this->map['project_id'] = $this->user['project_id']; |
| 33 | + $this->map['month'] = ['>=',date('Y-m',strtotime($this->user['uptime']))]; | ||
| 33 | $month = $monthCountModel->formatQuery($this->map)->pluck('month')->unique()->toArray(); | 34 | $month = $monthCountModel->formatQuery($this->map)->pluck('month')->unique()->toArray(); |
| 34 | $this->response('success',Code::SUCCESS,$month); | 35 | $this->response('success',Code::SUCCESS,$month); |
| 35 | } | 36 | } |
| @@ -79,7 +80,7 @@ class MonthReportController extends BaseController | @@ -79,7 +80,7 @@ class MonthReportController extends BaseController | ||
| 79 | $newsModel = new News(); | 80 | $newsModel = new News(); |
| 80 | $info['news_num'] = $newsModel->formatQuery(['status'=>0])->count(); | 81 | $info['news_num'] = $newsModel->formatQuery(['status'=>0])->count(); |
| 81 | $info['news_num_last_7'] = $newsModel->formatQuery( | 82 | $info['news_num_last_7'] = $newsModel->formatQuery( |
| 82 | - ['status'=>1,'created_at'=>['between',[now()->subDays(7)->startOfDay()->toDateString(),now()->startOfDay()->toDateString()]] | 83 | + ['status'=>0,'created_at'=>['between',[now()->subDays(7)->startOfDay()->toDateString(),now()->startOfDay()->toDateString()]] |
| 83 | ])->count(); | 84 | ])->count(); |
| 84 | $info['speed'] = round((0.3 + mt_rand()/mt_getrandmax() * (1-0.3)),2); | 85 | $info['speed'] = round((0.3 + mt_rand()/mt_getrandmax() * (1-0.3)),2); |
| 85 | $this->response('success',Code::SUCCESS,$info); | 86 | $this->response('success',Code::SUCCESS,$info); |
-
请 注册 或 登录 后发表评论