From 45264e85e2849e64b526b3b6d18b8a06af2f9598 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Fri, 2 Feb 2024 17:45:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95=E4=BE=9B=E5=BA=94=E9=93=BE?= =?UTF-8?q?=E8=AE=A2=E5=8D=95=E9=80=80=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/dao/system/financial/FinancialDao.php | 4 ++-- .../repositories/store/order/StoreRefundOrderRepository.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/common/dao/system/financial/FinancialDao.php b/app/common/dao/system/financial/FinancialDao.php index b331a63d..17a9ebde 100755 --- a/app/common/dao/system/financial/FinancialDao.php +++ b/app/common/dao/system/financial/FinancialDao.php @@ -138,8 +138,8 @@ class FinancialDao extends BaseDao $this->financeSn = $financialRecordRepository->getSn(); } $this->list[] = [ - 'order_id' => $this->order->order_id, - 'order_sn' => $this->order->order_sn, + 'order_id' => $this->order['order_id'], + 'order_sn' => $this->order['order_sn'], 'user_info' => $this->user['nickname'], 'user_id' => $this->user['uid'], 'financial_type' => $financialType, diff --git a/app/common/repositories/store/order/StoreRefundOrderRepository.php b/app/common/repositories/store/order/StoreRefundOrderRepository.php index be4de207..c67023af 100755 --- a/app/common/repositories/store/order/StoreRefundOrderRepository.php +++ b/app/common/repositories/store/order/StoreRefundOrderRepository.php @@ -1366,9 +1366,9 @@ class StoreRefundOrderRepository extends BaseRepository } $financeDao = new FinancialDao(); - $financeDao->order = $res->order; - $financeDao->order->order_id = $res->refund_order_id; - $financeDao->order->order_sn = $res->refund_order_sn; + $financeDao->order = $res->order->toArray(); + $financeDao->order['order_id'] = $res->refund_order_id; + $financeDao->order['order_sn'] = $res->refund_order_sn; $financeDao->user = $res->user; $financeDao->platformOut($refundPriceAll, 'order_refund'); $financeDao->save();