|
...
|
...
|
@@ -13,9 +13,12 @@ use App\Enums\Common\Code; |
|
|
|
use App\Http\Controllers\Bside\BaseController;
|
|
|
|
use App\Models\HomeCount\Count;
|
|
|
|
use App\Models\HomeCount\MonthCount;
|
|
|
|
use App\Models\Inquiry\InquiryIP;
|
|
|
|
use App\Models\Inquiry\InquirySet;
|
|
|
|
use App\Models\News\News;
|
|
|
|
use App\Models\Product\Category;
|
|
|
|
use App\Models\Product\Product;
|
|
|
|
use App\Models\Visit\Visit;
|
|
|
|
use Carbon\Carbon;
|
|
|
|
|
|
|
|
class MonthReportController extends BaseController
|
|
...
|
...
|
@@ -82,6 +85,9 @@ class MonthReportController extends BaseController |
|
|
|
$info['news_num_last_7'] = $newsModel->formatQuery(
|
|
|
|
['status'=>0,'created_at'=>['between',[now()->subDays(7)->startOfDay()->toDateString(),now()->startOfDay()->toDateString()]]
|
|
|
|
])->count();
|
|
|
|
$info['service_duration'] = $this->user['service_duration'];//服务天数
|
|
|
|
$info['ip_total'] = (new Visit())->count();//ip总数
|
|
|
|
$info['remain_day'] = $this->user['remain_day'];//剩余服务天数
|
|
|
|
$info['speed'] = round((0.3 + mt_rand()/mt_getrandmax() * (1-0.3)),2);
|
|
|
|
$this->response('success',Code::SUCCESS,$info);
|
|
|
|
}
|
...
|
...
|
|