p2 project
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
779 B

<?php
declare(strict_types=1);
namespace app\command;
use app\admin\service\setting\IPOService;
use think\console\Command;
use think\console\Input;
use think\console\Output;
class SignStockCommand extends Command
{
protected function configure()
{
// 指令配置
$this->setName('sign:stock')
->setDescription('the sign stock command');
}
/**
* Execute the console command.
*
* @param Input $input
* @param Output $output
* @return void
*/
protected function execute(Input $input, Output $output)
{
$market_list = [3, 4, 5, 6, 7, 9, 12, 14, 15, 16, 17, 18];
foreach ($market_list as $market_type) {
(new IPOService())->signStockIPO($market_type);
}
}
}