From c504b162efd42b511318dcbbce0b4d94aa60e213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”> Date: Fri, 7 May 2021 15:14:00 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8E=9F=E5=90=8E=E5=8F=B0=E8=B4=A2?= =?UTF-8?q?=E5=8A=A1=E8=AE=B0=E5=BD=95=E6=9B=B4=E6=94=B9=E3=80=91=20https:?= =?UTF-8?q?//www.tapd.cn/39598945/prong/stories/view/1139598945001000217?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/finance_check_script.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/script/finance_check_script.php b/script/finance_check_script.php index 43837b9..a840aee 100644 --- a/script/finance_check_script.php +++ b/script/finance_check_script.php @@ -133,7 +133,7 @@ foreach ($refund_qx_info as $info) { } //天天老鹰先锋的退款 金瑞 蘑菇 -$tlx_where = array_merge($where2, ['ProductId' => ['in', $product_enum::$tlxj], 'OrderState' => $product_order_enum::$AutoRefundOver]); +$tlx_where = array_merge($where2, ['ProductId' => ['in', $product_enum::$tlxj], 'OrderState' => ['in',$product_order_enum::$Refunds]]); $refund_tlx_info = $product_order_model->field('ProductId,PackageName,RefundRestTime,ConnectCount')->where($tlx_where)->where($where1)->fetchAll(); $tiantian_refund = []; $laoying_refund = []; @@ -530,7 +530,7 @@ function tl_rule($product, $refunds, $product_type = false) $count['refund'] = $refund; return $count; } -//天天,老鹰退款规则 +//老鹰退款规则 function laoying($product, $refunds, $product_type = false) { $month = 30; @@ -567,42 +567,42 @@ function laoying($product, $refunds, $product_type = false) foreach ($refunds as $info) { switch ($info['PackageName']) { case '天卡': - if ((86400 - handle_time($info['RefundRestTime'])) < 1800) { + if ((86400 - handle_time($info['RefundRestTime'])) < 7200) { $refund += $info['ConnectCount'] * 1.25; } else { $refund += $info['ConnectCount'] * 1.25 - ceil((86400 - handle_time($info['RefundRestTime']))/86400) * $info['ConnectCount'] * 1.25; } break; case '周卡': - if ((86400 * 7 - handle_time($info['RefundRestTime'])) < 1800) { + if ((86400 * 7 - handle_time($info['RefundRestTime'])) < 7200) { $refund += $info['ConnectCount'] * 7.5; } else { $refund += $info['ConnectCount'] * 7.5 - ceil((86400 * 7 - handle_time($info['RefundRestTime']))/86400) * $info['ConnectCount'] * 1.25; } break; case '月卡': - if ((86400 * $month - handle_time($info['RefundRestTime'])) < 1800) { + if ((86400 * $month - handle_time($info['RefundRestTime'])) < 7200) { $refund += $info['ConnectCount'] * 25; } else { $refund += $info['ConnectCount'] * 25 - ceil((86400 * $month - handle_time($info['RefundRestTime']))/86400) * $info['ConnectCount'] * 1.25; } break; case '季卡': - if ((86400 * 90 - handle_time($info['RefundRestTime'])) < 1800) { + if ((86400 * 90 - handle_time($info['RefundRestTime'])) < 7200) { $refund += $info['ConnectCount'] * 70; } else { $refund += $info['ConnectCount'] * 70 - ceil((86400 * 90 - handle_time($info['RefundRestTime']))/86400) * $info['ConnectCount'] * 1.25; } break; case '年卡': - if ((86400 * 365 - handle_time($info['RefundRestTime'])) < 1800) { + if ((86400 * 365 - handle_time($info['RefundRestTime'])) < 7200) { $refund += $info['ConnectCount'] * 250; } else { $refund += $info['ConnectCount'] * 250 - ceil((86400 * 365 - handle_time($info['RefundRestTime']))/86400) * $info['ConnectCount'] * 1.25; } break; case '双月卡': - if ((86400 * 90 - handle_time($info['RefundRestTime'])) < 1800) { + if ((86400 * 90 - handle_time($info['RefundRestTime'])) < 7200) { $refund += $info['ConnectCount'] * 120; } else { $refund += $info['ConnectCount'] * 120 - ceil((86400 * 90 - handle_time($info['RefundRestTime']))/86400) * $info['ConnectCount'] * 1.25;