Closed ChenRuihua closed 1 month ago
3.7.4
查询退款订单,报错,提示参数缺少 out_refund_no。
out_refund_no
` $order = [ 'transaction_id' => '4200059279202405224019931241', //'out_refund_no' => '20240522064023839', '_action' => 'refund', // '_action' => 'refund_jsapi', // 查询 jsapi 退款订单,默认 // '_action' => 'refund_app', // 查询 App 退款订单 // '_action' => 'refund_h5', // 查询 H5 退款订单 // '_action' => 'refund_mini', // 查询小程序退款订单 // '_action' => 'refund_native', // 查询 Native 退款订单 // '_action' => 'refund_combine', // 查询合单退款订单 ];
$result = Pay::wechat()->query($order); dump($result);
`
参数异常: Jsapi 查询退款订单,参数缺少 out_refund_no
2024-05-22T21:52:18.224507+08:00 > yansongda.artful.DEBUG > [Wechat][Pay][Jsapi][QueryRefundPlugin] 插件开始装载 {"rocket":{"Yansongda\\Artful\\Rocket":{"radar":{"url":null,"method":null,"headers":null,"body":""},"params":{"transaction_id":"4200059279202405224019931241","_action":"refund"},"payload":{"transaction_id":"4200059279202405224019931241","_action":"refund"},"packer":"Yansongda\\Artful\\Contract\\PackerInterface","direction":"Yansongda\\Artful\\Contract\\DirectionInterface","destination":null,"destination_origin":{"status":null,"headers":null,"body":""}}}}
涉及到 异步通知、同步通知 的问题,请贴出来
你不是把 这个参数注释掉了么
包版本号
3.7.4
问题描述
查询退款订单,报错,提示参数缺少
out_refund_no
。你的代码
` $order = [ 'transaction_id' => '4200059279202405224019931241', //'out_refund_no' => '20240522064023839', '_action' => 'refund', // '_action' => 'refund_jsapi', // 查询 jsapi 退款订单,默认 // '_action' => 'refund_app', // 查询 App 退款订单 // '_action' => 'refund_h5', // 查询 H5 退款订单 // '_action' => 'refund_mini', // 查询小程序退款订单 // '_action' => 'refund_native', // 查询 Native 退款订单 // '_action' => 'refund_combine', // 查询合单退款订单 ];
`
报错详情
参数异常: Jsapi 查询退款订单,参数缺少
out_refund_no
sdk 日志
2024-05-22T21:52:18.224507+08:00 > yansongda.artful.DEBUG > [Wechat][Pay][Jsapi][QueryRefundPlugin] 插件开始装载 {"rocket":{"Yansongda\\Artful\\Rocket":{"radar":{"url":null,"method":null,"headers":null,"body":""},"params":{"transaction_id":"4200059279202405224019931241","_action":"refund"},"payload":{"transaction_id":"4200059279202405224019931241","_action":"refund"},"packer":"Yansongda\\Artful\\Contract\\PackerInterface","direction":"Yansongda\\Artful\\Contract\\DirectionInterface","destination":null,"destination_origin":{"status":null,"headers":null,"body":""}}}}
nginx/apache 日志