This commit is contained in:
2023-04-10 18:59:00 +08:00
parent b05761dd24
commit b19d9450da
3 changed files with 8 additions and 5 deletions
+4 -1
View File
@@ -944,12 +944,15 @@ class InquiryService extends BaseService
];
$result = $WechatPay->refund($options);
dump($result);
// 处理订单退款状态
// 问诊订单退款状态(0:无退款 1:申请退款 2:退款中 3:退款成功 4:拒绝退款 5:退款关闭)
$success_time = "";
if ($result['status'] == "SUCCESS") {
// 退款成功
$inquiry_refund_status = 3;
$success_time = $result['success_time'];
} elseif ($result['status'] == "CLOSED") {
// 退款关闭
$inquiry_refund_status = 5;
@@ -964,7 +967,7 @@ class InquiryService extends BaseService
}
$refund_id = $result['refund_id'];
$success_time = $result['success_time'];
}else{
// 模拟退款
$inquiry_refund_status = 3;