From c8c6d67812450311b5eaa04c5b11e316df2f1308 Mon Sep 17 00:00:00 2001 From: wanghousheng Date: Sun, 24 Mar 2024 23:10:27 +0800 Subject: [PATCH] 1 --- app/api/model/OrderRefund.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/api/model/OrderRefund.php b/app/api/model/OrderRefund.php index 7f66095f..60ea8b93 100644 --- a/app/api/model/OrderRefund.php +++ b/app/api/model/OrderRefund.php @@ -154,7 +154,7 @@ class OrderRefund extends OrderRefundModel $goods = OrderGoodsModel::detail($orderGoodsId); if (isset($goods['refund']) && !empty($goods['refund'])) { //是否已经同意 - if (!empty($goods['refund']['audit_status']) == AuditStatusEnum::REVIEWED) { + if (!empty($goods['refund']['audit_status']) && $goods['refund']['audit_status'] == AuditStatusEnum::REVIEWED) { throwError('当前商品已申请售后'); } } @@ -209,13 +209,12 @@ class OrderRefund extends OrderRefundModel } return $this->transaction(function () use ($orderGoodsId, $data, $goods) { $order_refund_id = $goods['refund']['order_refund_id']; - // //更新售后单记录 + //更新售后单记录 $this->where(['order_refund_id' => $order_refund_id])->update([ 'type' => $data['type'], 'apply_desc' => $data['content'], 'audit_status' => AuditStatusEnum::WAIT, 'status' => 0, - 'store_id' => self::$storeId ]); // 记录凭证图片关系 if (!empty($data['images'])) {