调试退款

This commit is contained in:
liu 2024-06-06 09:51:14 +08:00
parent a8e0ec48ed
commit 2b7dc62b61

View File

@ -25,9 +25,10 @@ class IndexController extends BaseApiController
try { try {
$wechat = new PayService(1); $wechat = new PayService(1);
$time = time();
$order = [ $order = [
'out_trade_no' => 'PF1717558027664507', 'out_trade_no' => 'PF1717558027664507',
'out_refund_no' => time(), 'out_refund_no' => 'BO'.$time,
'amount' => [ 'amount' => [
'refund' => 1, 'refund' => 1,
'total' => 1, 'total' => 1,