From 9a572efd397e1823c42f5eba34b6645bc15fdced Mon Sep 17 00:00:00 2001 From: lyt Date: Thu, 19 Mar 2020 21:11:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20PayPal=E5=AF=BC=E5=87=BA=E5=A4=96?= =?UTF-8?q?=E7=AE=A1=E5=B1=80=E6=98=8E=E7=BB=86,=20=E6=80=BB=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E4=B8=8D=E8=B6=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webht/third_party/paypal/controllers/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webht/third_party/paypal/controllers/index.php b/webht/third_party/paypal/controllers/index.php index 7a1b2ed5..3c0a9303 100644 --- a/webht/third_party/paypal/controllers/index.php +++ b/webht/third_party/paypal/controllers/index.php @@ -1386,7 +1386,7 @@ class Index extends CI_Controller { // 记录这次导出的最后一条 if (isset($all_list['last_flag']) && ! empty($all_list['last_flag'])) { $balance_diff = bcsub($all_list['now_amount'], $amount); - $last_record_export = bcsub($all_list['last_flag']->pn_mc_gross, $balance_diff); + $last_record_export = $balance_diff>0 ? bcsub($all_list['last_flag']->pn_mc_gross, $balance_diff) : $all_list['last_flag']->pn_mc_gross; $insert_db = array( "TEL_transactionType" => 15002 ,"TEL_transactionNoticeId" => $all_list['last_flag']->pn_sn