用户主动取消订单增加退款。取消订单-问诊/检测/服务包增加推送消息
This commit is contained in:
@@ -992,6 +992,13 @@ class OrderService extends BaseService
|
||||
throw new BusinessException("订单类型错误");
|
||||
}
|
||||
|
||||
// 检测支付状态,判断是否需要退款处理
|
||||
if ($order['pay_status'] == 2 && $order['refund_status'] != 3) {
|
||||
// 需退款
|
||||
$OrderService = new OrderService();
|
||||
$OrderService->orderRefund($order['order_no'], "主动取消");
|
||||
}
|
||||
|
||||
// 删除锁
|
||||
$redis->del($redis_key);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user