From 817da774efc10028d5de2ddd863d320146d2459f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Fri, 24 Oct 2025 11:23:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=8E=B0=E7=A8=8E=E5=80=BC=E5=8F=96?= =?UTF-8?q?=E5=80=BC=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/cron/controller/PerformPerSecond.php | 6 +++--- extend/Yzh/YunPay.php | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/application/cron/controller/PerformPerSecond.php b/application/cron/controller/PerformPerSecond.php index 5569435..5c7b860 100644 --- a/application/cron/controller/PerformPerSecond.php +++ b/application/cron/controller/PerformPerSecond.php @@ -145,7 +145,7 @@ class PerformPerSecond continue; } } - if($value['yun_order_status'] == 5077){ + if(in_array($value['yun_order_status'],[261,5077])){ continue; } echo "提现订单查询:".$value['order_sn']."\n"; @@ -160,7 +160,7 @@ class PerformPerSecond 'updatetime' => time(), 'yun_order_status' => $result['data']['code'], // 'personal_tax_rate' => $result['personal_tax_rate'] ?? 0, - 'received_tax_amount' => $result['received_tax_amount'] ?? 0, + 'received_tax_amount' => $result['data']['received_tax_amount'] ?? 0, ]); }else{ db::name('vs_user_withdrawal')->where('order_sn',$value['order_sn'])->update([ @@ -170,7 +170,7 @@ class PerformPerSecond 'updatetime' => time(), 'yun_order_status' => $result['data']['code'], // 'personal_tax_rate' => $result['personal_tax_rate'] ?? 0, - 'received_tax_amount' => $result['received_tax_amount'] ?? 0, + 'received_tax_amount' => $result['data']['received_tax_amount'] ?? 0, ]); if(in_array($result['data']['code'],[5077,261]) && $value['yun_order_status'] == null){ // if($result['data']['code']==5077 && $value['yun_order_status'] == null){ diff --git a/extend/Yzh/YunPay.php b/extend/Yzh/YunPay.php index 2110996..9f10782 100644 --- a/extend/Yzh/YunPay.php +++ b/extend/Yzh/YunPay.php @@ -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 ]]; }