51 lines
1.2 KiB
PHP
51 lines
1.2 KiB
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'] = 2; // 订单状态(1:待支付 2:待发货 3:已发货 4:已签收 5:已取消)
|
||
$params['pay_status'] = 2;
|
||
$params['refund_status'] = 0;
|
||
|
||
$field = [
|
||
'order_product_id',
|
||
'order_inquiry_id',
|
||
'order_inquiry_id',
|
||
];
|
||
|
||
|
||
} catch (\Exception $e) {
|
||
$this->line("获取处方平台订单状态失败:" . $e->getMessage());
|
||
}
|
||
}
|
||
}
|