作者 lyh

gx

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