去除处方请求限制

This commit is contained in:
wucongxing 2023-04-12 15:16:24 +08:00
parent 66df9d1548
commit f571b9d6ed

View File

@ -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