提现税值取值修改
This commit is contained in:
@@ -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
|
||||
]];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user