修改消息推送

This commit is contained in:
2023-04-24 18:28:23 +08:00
parent 74b7746d88
commit 8215609eed
3 changed files with 159 additions and 188 deletions
+4 -12
View File
@@ -45,18 +45,10 @@ class ReportPreProductOrderCommand extends HyperfCommand
{
$this->line("开始");
try {
// 获取可上报商品订单
$order_product_ids = $this->getExecProductOrder();
if (empty($order_product_ids)){
$this->line("结束,无可上报的商品订单");
return;
}
// 获取缓存
$redis = $this->container->get(Redis::class);
} catch (\Exception $e) {
$this->line("错误:" . $e->getMessage());
// 获取可上报商品订单
$order_product_ids = $this->getExecProductOrder();
if (empty($order_product_ids)){
$this->line("结束,无可上报的商品订单");
return;
}