From 6f8b676336d8ec0d44156bb8e84b0921ad7a5572 Mon Sep 17 00:00:00 2001 From: "yangsai@163.com" <2624183217@qq.com> Date: Thu, 16 May 2024 14:10:09 +0800 Subject: [PATCH] =?UTF-8?q?YS:=E6=8D=A2=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/store/model/OrderRefund.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/store/model/OrderRefund.php b/app/store/model/OrderRefund.php index 2fe78103..4e1ed2da 100644 --- a/app/store/model/OrderRefund.php +++ b/app/store/model/OrderRefund.php @@ -203,9 +203,9 @@ class OrderRefund extends OrderRefundModel // 更新售后单状态 $this->save($data); // 同意售后申请, 记录退货地址 -// if ($data['audit_status'] == AuditStatusEnum::REVIEWED) { -// (new OrderRefundAddress)->add((int)$this['order_refund_id'], (int)($data['address_id'] ?? 0)); -// } + if ($data['audit_status'] == AuditStatusEnum::REVIEWED) { + (new OrderRefundAddress)->add((int)$this['order_refund_id'], (int)($data['address_id'] ?? 0)); + } // 订单详情 $order = Order::detail($this['order_id']); // 发送消息通知