This commit is contained in:
2025-10-14 15:10:13 +08:00
parent 8aed3e5aac
commit d2a46c4738
15 changed files with 512 additions and 15 deletions

View File

@@ -0,0 +1,39 @@
<?php
namespace app\command;
use support\think\Db;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Output\OutputInterface;
use ZipArchive;
// 查询短信发送状态
class QuerySmsStatus extends Command
{
protected static $defaultName = 'querysmsstatus';
protected static $defaultDescription = 'querysmsstatus';
/**
* @return void
*/
protected function configure()
{
$this->addArgument('name', InputArgument::OPTIONAL, 'Name description');
}
/**
* @param InputInterface $input
* @param OutputInterface $output
* @return int
*/
protected function execute(InputInterface $input, OutputInterface $output): int
{
$list = Db::table('sms_user_push_event')->where(['push_type' => 2])->select()->toArray();
return self::SUCCESS;
}
}