|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @remark :
|
|
|
|
* @name :Notice.php
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/3/6 16:01
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace App\Console\Commands\Notice;
|
|
|
|
|
|
|
|
use App\Models\Com\KeywordVideoTaskLog;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :通知C端生成界面
|
|
|
|
* @name :Notice
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/3/6 16:01
|
|
|
|
*/
|
|
|
|
class Notice extends Command
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* The name and signature of the console command.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $signature = 'notice_c';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The console command description.
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $description = '通知C端生成界面';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :通知C端生成界面
|
|
|
|
* @name :handle
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/11/20 15:13
|
|
|
|
*/
|
|
|
|
public function handle(){
|
|
|
|
$yesterday = date('Y-m-d', strtotime('yesterday'));
|
|
|
|
$keywordVideoModel = new KeywordVideoTaskLog();
|
|
|
|
$list = $keywordVideoModel->select('project_id')
|
|
|
|
->groupBy('project_id')->whereBetween('date', [$yesterday.' 00:00:00',$yesterday.' 23:59:59'])->get()->toArray();
|
|
|
|
//TODO::通知C端
|
|
|
|
foreach ($list as $k => $v){
|
|
|
|
//TODO::获取项目域名
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|