作者 lyh

gx

  1 +<?php
  2 +/**
  3 + * @remark :
  4 + * @name :Notice.php
  5 + * @author :lyh
  6 + * @method :post
  7 + * @time :2024/3/6 16:01
  8 + */
  9 +
  10 +namespace App\Console\Commands\Notice;
  11 +
  12 +use App\Models\Com\KeywordVideoTaskLog;
  13 +use Illuminate\Console\Command;
  14 +use Illuminate\Support\Facades\DB;
  15 +
  16 +/**
  17 + * @remark :通知C端生成界面
  18 + * @name :Notice
  19 + * @author :lyh
  20 + * @method :post
  21 + * @time :2024/3/6 16:01
  22 + */
  23 +class Notice extends Command
  24 +{
  25 + /**
  26 + * The name and signature of the console command.
  27 + *
  28 + * @var string
  29 + */
  30 + protected $signature = 'notice_c';
  31 +
  32 + /**
  33 + * The console command description.
  34 + *
  35 + * @var string
  36 + */
  37 + protected $description = '通知C端生成界面';
  38 +
  39 + /**
  40 + * @remark :通知C端生成界面
  41 + * @name :handle
  42 + * @author :lyh
  43 + * @method :post
  44 + * @time :2023/11/20 15:13
  45 + */
  46 + public function handle(){
  47 + $yesterday = date('Y-m-d', strtotime('yesterday'));
  48 + $keywordVideoModel = new KeywordVideoTaskLog();
  49 + $list = $keywordVideoModel->select('project_id')
  50 + ->groupBy('project_id')->whereBetween('date', [$yesterday.' 00:00:00',$yesterday.' 23:59:59'])->get()->toArray();
  51 + //TODO::通知C端
  52 + foreach ($list as $k => $v){
  53 + //TODO::获取项目域名
  54 + }
  55 + return true;
  56 + }
  57 +}