hospital-applets-api/app/Command/getPrescriptionOrderStatusCommand.php

42 lines
965 B
PHP

<?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());
}
}
}