From b7d38eb602fbdb6f802bdfae7cc28ecc790cb56e Mon Sep 17 00:00:00 2001 From: liaofei <136327134@qq.com> Date: Mon, 26 Jun 2023 11:58:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=80=80=E6=AC=BE=E6=96=87?= =?UTF-8?q?=E5=AD=97=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crmeb/app/services/order/StoreOrderRefundServices.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crmeb/app/services/order/StoreOrderRefundServices.php b/crmeb/app/services/order/StoreOrderRefundServices.php index cc394c4af..3639ffb28 100644 --- a/crmeb/app/services/order/StoreOrderRefundServices.php +++ b/crmeb/app/services/order/StoreOrderRefundServices.php @@ -688,7 +688,7 @@ class StoreOrderRefundServices extends BaseServices $storeOrderServices->update($oid, ['refund_status' => 0, 'refund_type' => 3]); //处理订单商品cart_info - $this->cancelOrderRefundCartInfo($id, $oid, $orderRefundInfo); + $this->cancelOrderRefundCartInfo($id, $oid, $orderRefundInfo, '不退款原因:' . ($data['refund_reason'] ?? '')); //记录 /** @var StoreOrderStatusServices $statusService */ $statusService = app()->make(StoreOrderStatusServices::class); @@ -1277,7 +1277,7 @@ class StoreOrderRefundServices extends BaseServices * @throws \think\db\exception\DbException * @throws \think\db\exception\ModelNotFoundException */ - public function cancelOrderRefundCartInfo(int $id, int $oid, $orderRefundInfo = []) + public function cancelOrderRefundCartInfo(int $id, int $oid, $orderRefundInfo = [], string $title = '') { if (!$orderRefundInfo) { $orderRefundInfo = $this->dao->get(['id' => $id, 'is_cancel' => 0]); @@ -1306,7 +1306,7 @@ class StoreOrderRefundServices extends BaseServices $statusService->save([ 'oid' => $oid, 'change_type' => 'cancel_refund_order', - 'change_message' => '取消退款', + 'change_message' => $title ?: '取消退款', 'change_time' => time() ]);