Browse Source

修改提示

develop
李可松 4 years ago
parent
commit
d693ac61d4
  1. 4
      app/AdminAgent/Extensions/Grid/AuditRefund.php

4
app/AdminAgent/Extensions/Grid/AuditRefund.php

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

Loading…
Cancel
Save