去除处方请求限制
This commit is contained in:
parent
66df9d1548
commit
f571b9d6ed
@ -48,11 +48,7 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
foreach ($order_product_ids as $item) {
|
foreach ($order_product_ids as $item) {
|
||||||
if ($item['order_product_id'] != "504656990619947008"){
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
Db::beginTransaction();
|
Db::beginTransaction();
|
||||||
|
|
||||||
// 是否执行了退款-预定义变量
|
// 是否执行了退款-预定义变量
|
||||||
@ -112,6 +108,7 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand
|
|||||||
$OrderProductService = new OrderProductService();
|
$OrderProductService = new OrderProductService();
|
||||||
$OrderProductService->OrderProductRefund($item['order_product_id'],"订单退款");
|
$OrderProductService->OrderProductRefund($item['order_product_id'],"订单退款");
|
||||||
|
|
||||||
|
// 标记为执行了退款
|
||||||
$is_refund = 1;
|
$is_refund = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -151,7 +148,7 @@ class getPrescriptionOrderStatusCommand extends HyperfCommand
|
|||||||
$this->line("获取处方平台订单数据失败:" . $e->getMessage());
|
$this->line("获取处方平台订单数据失败:" . $e->getMessage());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 检测是否需要发送通知
|
// 检测是否执行了退款
|
||||||
if ($is_refund == 1){
|
if ($is_refund == 1){
|
||||||
try {
|
try {
|
||||||
// 获取患者用户id
|
// 获取患者用户id
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user