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();