diff --git a/app/AdminAgent/Extensions/Grid/AuditRefund.php b/app/AdminAgent/Extensions/Grid/AuditRefund.php index 465f334..d7da635 100644 --- a/app/AdminAgent/Extensions/Grid/AuditRefund.php +++ b/app/AdminAgent/Extensions/Grid/AuditRefund.php @@ -93,12 +93,14 @@ class AuditRefund extends RowAction 'transaction_id' => $result['transaction_id'], 'created_at' => now(), //模型没有updated_at,无法自动写入时间 ]); + } else { + return $this->response()->error("操作失败,失败原因:" . ($result['return_msg']??'未知'))->refresh(); } } DB::commit(); - return $this->response()->success("操作成功,已向微信申请退款,款项将原路退还")->refresh(); + return $this->response()->success("操作成功,款项将原路退还")->refresh(); } catch (\Exception $e) { DB::rollBack(); return $this->response()->error($e->getMessage());