|
|
@ -51,6 +51,7 @@ class AuditRefund extends RowAction |
|
|
if (!$order) { |
|
|
if (!$order) { |
|
|
return $this->response()->error("退款订单不存在或已处理过了")->refresh(); |
|
|
return $this->response()->error("退款订单不存在或已处理过了")->refresh(); |
|
|
} |
|
|
} |
|
|
|
|
|
$order->verify_code = ''; //清空核销码
|
|
|
$order->status = OrderStatus::REFUNDED; |
|
|
$order->status = OrderStatus::REFUNDED; |
|
|
$order->save(); |
|
|
$order->save(); |
|
|
|
|
|
|
|
|
@ -98,7 +99,6 @@ class AuditRefund extends RowAction |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DB::commit(); |
|
|
DB::commit(); |
|
|
return $this->response()->success("操作成功,款项将原路退还")->refresh(); |
|
|
return $this->response()->success("操作成功,款项将原路退还")->refresh(); |
|
|
} catch (\Exception $e) { |
|
|
} catch (\Exception $e) { |
|
|
|