文件
xionggeshop/addons/shopro/command/SplitRetry.php

23 行
517 B
PHP

<?php
namespace addons\shopro\command;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use addons\shopro\library\split\SplitRetryJob;
class SplitRetry extends Command
{
protected function configure()
{
$this->setName('shopro:split-retry')->setDescription('Retry failed WeChat profit sharing orders');
}
protected function execute(Input $input, Output $output)
{
SplitRetryJob::run();
$output->writeln('Split retry job finished.');
}
}