作者 lyh

gx

1 <?php 1 <?php
2 2
3 -namespace App\Console\Commands\YesterdayCount; 3 +namespace App\Console\Commands\DayCount;
4 4
5 use App\Helper\Common; 5 use App\Helper\Common;
6 use App\Helper\FormGlobalsoApi; 6 use App\Helper\FormGlobalsoApi;
@@ -9,7 +9,7 @@ use Carbon\Carbon; @@ -9,7 +9,7 @@ use Carbon\Carbon;
9 use Illuminate\Console\Command; 9 use Illuminate\Console\Command;
10 use Illuminate\Support\Facades\DB; 10 use Illuminate\Support\Facades\DB;
11 11
12 -class Yesterday extends Command 12 +class Count extends Command
13 { 13 {
14 const STATUS_ERROR = 400; 14 const STATUS_ERROR = 400;
15 public $error = 0; 15 public $error = 0;
@@ -18,7 +18,7 @@ class Yesterday extends Command @@ -18,7 +18,7 @@ class Yesterday extends Command
18 * 18 *
19 * @var string 19 * @var string
20 */ 20 */
21 - protected $signature = 'yesterday_count'; 21 + protected $signature = 'count';
22 22
23 /** 23 /**
24 * The console command description. 24 * The console command description.
@@ -24,7 +24,7 @@ class InquiryMonthlyCount extends Command @@ -24,7 +24,7 @@ class InquiryMonthlyCount extends Command
24 * 24 *
25 * @var string 25 * @var string
26 */ 26 */
27 - protected $description = '统计昨日数据'; 27 + protected $description = '月报告统计';
28 28
29 /** 29 /**
30 * @remark :询盘月报告 30 * @remark :询盘月报告
@@ -23,12 +23,13 @@ class Kernel extends ConsoleKernel @@ -23,12 +23,13 @@ class Kernel extends ConsoleKernel
23 $schedule->command('rank_data_recomm_domain')->weeklyOn(1, '01:00')->withoutOverlapping(1); // 排名数据-引荐域名,每周一凌晨执行一次 23 $schedule->command('rank_data_recomm_domain')->weeklyOn(1, '01:00')->withoutOverlapping(1); // 排名数据-引荐域名,每周一凌晨执行一次
24 $schedule->command('rank_data_week')->weeklyOn(1, '01:00')->withoutOverlapping(1); // 排名数据,每周一凌晨执行一次 24 $schedule->command('rank_data_week')->weeklyOn(1, '01:00')->withoutOverlapping(1); // 排名数据,每周一凌晨执行一次
25 $schedule->command('share_user')->dailyAt('01:00')->withoutOverlapping(1); // 清除用户ayr_share数据,每天凌晨1点执行一次 25 $schedule->command('share_user')->dailyAt('01:00')->withoutOverlapping(1); // 清除用户ayr_share数据,每天凌晨1点执行一次
26 - $schedule->command('yesterday_count')->dailyAt('01:00')->withoutOverlapping(1); // 清除用户ayr_share数据,每天凌晨1点执行一次 26 + $schedule->command('count')->dailyAt('01:00')->withoutOverlapping(1); // 清除用户ayr_share数据,每天凌晨1点执行一次
27 $schedule->command('web_traffic 1')->everyThirtyMinutes(); // 引流 1-3个月的项目,半小时一次 27 $schedule->command('web_traffic 1')->everyThirtyMinutes(); // 引流 1-3个月的项目,半小时一次
28 $schedule->command('web_traffic 2')->cron('*/18 * * * *'); // 引流 4-8个月的项目,18分钟一次 28 $schedule->command('web_traffic 2')->cron('*/18 * * * *'); // 引流 4-8个月的项目,18分钟一次
29 $schedule->command('web_traffic 3')->cron('*/12 * * * *'); // 引流 大于9个月的项目,12分钟一次 29 $schedule->command('web_traffic 3')->cron('*/12 * * * *'); // 引流 大于9个月的项目,12分钟一次
30 $schedule->command('sync_channel')->dailyAt('06:00')->withoutOverlapping(1); // 渠道信息,每周执行一次 30 $schedule->command('sync_channel')->dailyAt('06:00')->withoutOverlapping(1); // 渠道信息,每周执行一次
31 $schedule->command('sync_project')->everyMinute()->withoutOverlapping(1); //同步项目 31 $schedule->command('sync_project')->everyMinute()->withoutOverlapping(1); //同步项目
  32 + $schedule->command('month_count')->monthlyOn(1,'01:00')->withoutOverlapping(1);//没月月初1号执行月统计记录
32 // // 更新域名|证书结束时间,每天凌晨1点执行一次 33 // // 更新域名|证书结束时间,每天凌晨1点执行一次
33 // $schedule->command('domain_time')->dailyAt('01:00')->withoutOverlapping(1); 34 // $schedule->command('domain_time')->dailyAt('01:00')->withoutOverlapping(1);
34 // // B站 - 网站数据统计 35 // // B站 - 网站数据统计
  1 +<?php
  2 +
  3 +namespace App\Http\Controllers\Bside\HomeCount;
  4 +
  5 +use App\Http\Controllers\Bside\BaseController;
  6 +
  7 +/**
  8 + * @remark :月统计报告
  9 + * @name :MonthCountController
  10 + * @author :lyh
  11 + * @time :2023/6/30 17:53
  12 + */
  13 +class MonthCountController extends BaseController
  14 +{
  15 + /**
  16 + * @remark :月统计报告
  17 + * @name :Count
  18 + * @author :lyh
  19 + * @method :post
  20 + * @time :2023/6/30 17:58
  21 + */
  22 + public function InquiryCount(){
  23 +
  24 + }
  25 +}
@@ -29,7 +29,7 @@ class BTemplateLogic extends BaseLogic @@ -29,7 +29,7 @@ class BTemplateLogic extends BaseLogic
29 * @method :post 29 * @method :post
30 * @time :2023/6/29 9:34 30 * @time :2023/6/29 9:34
31 */ 31 */
32 - public function publicTemplateLists($map,$page,$row,$order = 'created_at',$filed = ['id','name','image','created_at']){ 32 + public function publicTemplateLists($map,$page,$row,$order = 'created_at',$filed = ['id','name','image','url','created_at']){
33 $templateModel = new Template(); 33 $templateModel = new Template();
34 $lists = $templateModel->lists($map,$page,$row,$order,$filed); 34 $lists = $templateModel->lists($map,$page,$row,$order,$filed);
35 return $this->success($lists); 35 return $this->success($lists);