修改延迟队列时间

This commit is contained in:
2023-04-11 13:30:56 +08:00
parent 83a429717b
commit c7496d01e8
3 changed files with 44 additions and 3 deletions
@@ -0,0 +1,41 @@
<?php
declare(strict_types=1);
namespace App\Command;
use Hyperf\Command\Command as HyperfCommand;
use Hyperf\Command\Annotation\Command;
use Psr\Container\ContainerInterface;
/**
* 获取处方平台订单状态
*/
#[Command]
class getPrescriptionOrderStatusCommand extends HyperfCommand
{
public function __construct(protected ContainerInterface $container)
{
parent::__construct('getPrescriptionOrderStatus:command');
}
public function configure()
{
parent::configure();
$this->setDescription('获取处方平台订单状态');
}
public function handle()
{
$this->line("获取处方平台订单状态开始");
try {
// 获取需执行订单数据
$params = array();
$params['order_product_status'] = "";
} catch (\Exception $e) {
$this->line("获取处方平台订单状态失败:" . $e->getMessage());
}
}
}