正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -11,6 +11,7 @@ namespace App\Http\Controllers\Bside\BCom; | @@ -11,6 +11,7 @@ namespace App\Http\Controllers\Bside\BCom; | ||
| 11 | 11 | ||
| 12 | use App\Enums\Common\Code; | 12 | use App\Enums\Common\Code; |
| 13 | use App\Http\Controllers\Bside\BaseController; | 13 | use App\Http\Controllers\Bside\BaseController; |
| 14 | +use App\Models\HomeCount\Count; | ||
| 14 | use App\Models\HomeCount\MonthCount; | 15 | use App\Models\HomeCount\MonthCount; |
| 15 | use Carbon\Carbon; | 16 | use Carbon\Carbon; |
| 16 | 17 | ||
| @@ -66,7 +67,7 @@ class MonthReportController extends BaseController | @@ -66,7 +67,7 @@ class MonthReportController extends BaseController | ||
| 66 | 'date' => ['between',[$startTime,$endTime]], | 67 | 'date' => ['between',[$startTime,$endTime]], |
| 67 | 'project_id' => $this->user['project_id'] | 68 | 'project_id' => $this->user['project_id'] |
| 68 | ]; | 69 | ]; |
| 69 | - $v['pv_ip'] = $this->model->list($param,'date',['id','pv_num','ip_num','date']); | 70 | + $v['pv_ip'] = new (Count())->list($param,'date',['id','pv_num','ip_num','date']); |
| 70 | $info[$k] = $v; | 71 | $info[$k] = $v; |
| 71 | } | 72 | } |
| 72 | $this->response('success',Code::SUCCESS,$info); | 73 | $this->response('success',Code::SUCCESS,$info); |
-
请 注册 或 登录 后发表评论