新增未开发路由
This commit is contained in:
@@ -98,24 +98,24 @@ class UserController extends AbstractController
|
||||
// return $this->response->json($pay_config);
|
||||
|
||||
// 发起退款
|
||||
$WechatPay = new WechatPay(1);
|
||||
|
||||
$params = array();
|
||||
$params['order_inquiry_id'] = 1;
|
||||
$order_inquiry = OrderInquiry::getOne($params);
|
||||
|
||||
|
||||
$options = array();
|
||||
$options['transaction_id'] = $order_inquiry['escrow_trade_no'];
|
||||
$options['out_refund_no'] = $order_inquiry['inquiry_refund_no'];
|
||||
$options['reason'] = "退款原因";
|
||||
$options['amount'] = [
|
||||
'refund' => (int)1,
|
||||
'total' => (int)1,
|
||||
'currency' => "CNY",
|
||||
];
|
||||
|
||||
$result = $WechatPay->refund($options);
|
||||
dump($result);
|
||||
// $WechatPay = new WechatPay(1);
|
||||
//
|
||||
// $params = array();
|
||||
// $params['order_inquiry_id'] = 1;
|
||||
// $order_inquiry = OrderInquiry::getOne($params);
|
||||
//
|
||||
//
|
||||
// $options = array();
|
||||
// $options['transaction_id'] = $order_inquiry['escrow_trade_no'];
|
||||
// $options['out_refund_no'] = $order_inquiry['inquiry_refund_no'];
|
||||
// $options['reason'] = "退款原因";
|
||||
// $options['amount'] = [
|
||||
// 'refund' => (int)1,
|
||||
// 'total' => (int)1,
|
||||
// 'currency' => "CNY",
|
||||
// ];
|
||||
//
|
||||
// $result = $WechatPay->refund($options);
|
||||
// dump($result);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user