bug修改同步

This commit is contained in:
2025-10-24 18:30:14 +08:00
parent bf5ed0a0a7
commit e79036a6dd
4 changed files with 26 additions and 18 deletions

View File

@@ -20,7 +20,7 @@ class YunPay
public $id_card;
public $card_no;
public $order_amount;
public $notify_url = 'https://vespa.qxyushen.top/api/Payment/yun_callback';
public $notify_url = 'https://md.xscmmidi.site/api/Payment/yun_callback';
public $phone = '';
public $config;
@@ -205,6 +205,7 @@ class YunPay
$request->setRequestID($request_id);
$response = $this->paymentClient->getOrder($request);
if ($response->isSuccess()) {
$tax_detail = $response->getData()->getTaxDetail();//获取税详情
// if(!empty($response->getData()->getTaxDetail())){
// $personal_tax_rate = $response->getData()->getTaxDetail()->getPersonalTaxRate();
// }else{
@@ -216,7 +217,7 @@ class YunPay
'code' => $response->getData()->getStatusDetail(),
'msg' => $response->getData()->getStatusMessage(),
// 'personal_tax_rate' => $personal_tax_rate,
'received_tax_amount' => $response->getData()->getReceivedTaxAmount()
'received_tax_amount' => $tax_detail['user_received_personal_tax'] ?? 0
]];
}else{
@@ -224,7 +225,7 @@ class YunPay
'code' => $response->getData()->getStatusDetail(),
'msg' => $response->getData()->getStatusDetailMessage(),
// 'personal_tax_rate' => $personal_tax_rate,
'received_tax_amount' => $response->getData()->getReceivedTaxAmount()
'received_tax_amount' => $tax_detail['user_received_personal_tax'] ?? 0
]];
}