From 0d754c58a2478f3c64816de4f2029b5663ad6bc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Fri, 15 Jan 2021 15:40:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E9=80=80=E6=AC=BE=E8=A7=84?= =?UTF-8?q?=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/finance_check_script.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/script/finance_check_script.php b/script/finance_check_script.php index 359d04d..dc6ca3e 100644 --- a/script/finance_check_script.php +++ b/script/finance_check_script.php @@ -191,6 +191,9 @@ function jike($product) case '季卡': $count += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 150; break; + case '双月卡': + $count += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 180; + break; case '年卡': $count += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 600; break; @@ -256,6 +259,10 @@ function qx_rule($product, $refunds, $product_type = true) case '季卡(活动)': $cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 600; + break; + case '双月卡(活动)': + $cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 400; + break; case '年卡': $cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 2400; @@ -278,7 +285,7 @@ function qx_rule($product, $refunds, $product_type = true) $refund += round(60/7*intval(handle_time($info['RefundRestTime'])/86400)); } break; - // case '月卡(活动)': + case '月卡(活动)': case '月卡': if ((86400*30 - handle_time($info['RefundRestTime'])) < 7200) { $refund += 200; @@ -294,6 +301,13 @@ function qx_rule($product, $refunds, $product_type = true) $refund += round(600/90*intval(handle_time($info['RefundRestTime'])/86400)); } break; + case '双月卡(活动)': + if ((86400*90 - handle_time($info['RefundRestTime'])) < 7200) { + $refund += 400; + } else { + $refund += round(600/90*intval(handle_time($info['RefundRestTime'])/86400)); + } + break; case '年卡': if ((86400*365 - handle_time($info['RefundRestTime'])) < 7200) { $refund += 2400; @@ -419,7 +433,7 @@ function xianfeng($product, $refunds) break; case '双月卡(活动)': - $cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 120; + $cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 108; break; }