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;