From 6d006621eb9af5c734eec25dbc5ba77412877fbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Sat, 5 Jun 2021 10:50:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=9F=E5=90=8E=E5=8F=B0=E8=B4=A2=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/finance_check_script.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/finance_check_script.php b/script/finance_check_script.php index 985e509..5830e64 100644 --- a/script/finance_check_script.php +++ b/script/finance_check_script.php @@ -577,35 +577,35 @@ function laoying($product, $refunds, $product_type = false) if ((86400 * 7 - handle_time($info['RefundRestTime'])) < 7200) { $refund += $info['ConnectCount'] * 9; } else { - $refund += round($info['ConnectCount'] * (9 / 7) * (handle_time($info['RefundRestTime'])/86400),2); + $refund += round($info['ConnectCount'] * (9 / 7) * floor((handle_time($info['RefundRestTime'])/86400)),2); } break; case '月卡': if ((86400 * $month - handle_time($info['RefundRestTime'])) < 7200) { $refund += $info['ConnectCount'] * 30; } else { - $refund += round($info['ConnectCount'] * (30 / 30) * (handle_time($info['RefundRestTime'])/86400),2); + $refund += round($info['ConnectCount'] * (30 / 30) * floor((handle_time($info['RefundRestTime'])/86400)),2); } break; case '季卡': if ((86400 * 90 - handle_time($info['RefundRestTime'])) < 7200) { $refund += $info['ConnectCount'] * 84; } else { - $refund += round($info['ConnectCount'] * (84 / 90) * (handle_time($info['RefundRestTime'])/86400),2); + $refund += round($info['ConnectCount'] * (84 / 90) * floor((handle_time($info['RefundRestTime'])/86400)),2); } break; case '年卡': if ((86400 * 365 - handle_time($info['RefundRestTime'])) < 7200) { $refund += $info['ConnectCount'] * 300; } else { - $refund += round($info['ConnectCount'] * (300 / 365) * (handle_time($info['RefundRestTime'])/86400),2); + $refund += round($info['ConnectCount'] * (300 / 365) * floor((handle_time($info['RefundRestTime'])/86400)),2); } break; case '双月卡': if ((86400 * 90 - handle_time($info['RefundRestTime'])) < 7200) { $refund += $info['ConnectCount'] * 120; } else { - $refund += round($info['ConnectCount'] * (120 / 90) * (handle_time($info['RefundRestTime'])/86400),2); + $refund += round($info['ConnectCount'] * (120 / 90) * floor((handle_time($info['RefundRestTime'])/86400)),2); } break; }