40 lines
1008 B
PHP
40 lines
1008 B
PHP
<?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;
|
|
}
|
|
|
|
}
|