|
|
|
@ -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'])) { |
|
|
|
|