From 09b8f674033cdc82350b53438b9ba4903febe19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Fri, 17 Feb 2023 10:36:07 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8B=BC=E5=9B=A2=E9=80=80?= =?UTF-8?q?=E6=AC=BE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../services/order/StoreOrderRefundServices.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/crmeb/app/services/order/StoreOrderRefundServices.php b/crmeb/app/services/order/StoreOrderRefundServices.php index ef8d2144c..4290ee77b 100644 --- a/crmeb/app/services/order/StoreOrderRefundServices.php +++ b/crmeb/app/services/order/StoreOrderRefundServices.php @@ -1104,7 +1104,13 @@ class StoreOrderRefundServices extends BaseServices /** * 退款订单详情 * @param $uni - * @return mixed + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException + * @author 吴汐 + * @email 442384644@qq.com + * @date 2023/02/17 */ public function refundDetail($uni) { @@ -1129,6 +1135,12 @@ class StoreOrderRefundServices extends BaseServices $orderData['store_order_sn'] = $orderInfo['order_id']; $orderData['cartInfo'] = $orderData['cart_info']; $orderData['_pay_time'] = date('Y-m-d H:i:s', $orderInfo['pay_time']); + $orderData['type'] = 0; + if ($orderInfo['seckill_id'] || $orderInfo['bargain_id'] || $orderInfo['combination_id']) { + if ($orderInfo['seckill_id']) $orderData['type'] = 1; + if ($orderInfo['bargain_id']) $orderData['type'] = 2; + if ($orderInfo['combination_id']) $orderData['type'] = 3; + } //核算优惠金额 $vipTruePrice = 0; $total_price = 0;