diff --git a/app/Command/getPrescriptionOrderStatusCommand.php b/app/Command/getPrescriptionOrderStatusCommand.php index 85c68d2..8f93f85 100644 --- a/app/Command/getPrescriptionOrderStatusCommand.php +++ b/app/Command/getPrescriptionOrderStatusCommand.php @@ -48,11 +48,7 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand return; } - foreach ($order_product_ids as $item) { - if ($item['order_product_id'] != "504656990619947008"){ - continue; - } Db::beginTransaction(); // 是否执行了退款-预定义变量 @@ -112,6 +108,7 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand $OrderProductService = new OrderProductService(); $OrderProductService->OrderProductRefund($item['order_product_id'],"订单退款"); + // 标记为执行了退款 $is_refund = 1; } @@ -151,7 +148,7 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand $this->line("获取处方平台订单数据失败:" . $e->getMessage()); } - // 检测是否需要发送通知 + // 检测是否执行了退款 if ($is_refund == 1){ try { // 获取患者用户id