活动退款规则
This commit is contained in:
@@ -191,6 +191,9 @@ function jike($product)
|
|||||||
case '季卡':
|
case '季卡':
|
||||||
$count += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 150;
|
$count += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 150;
|
||||||
break;
|
break;
|
||||||
|
case '双月卡':
|
||||||
|
$count += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 180;
|
||||||
|
break;
|
||||||
case '年卡':
|
case '年卡':
|
||||||
$count += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 600;
|
$count += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 600;
|
||||||
break;
|
break;
|
||||||
@@ -256,6 +259,10 @@ function qx_rule($product, $refunds, $product_type = true)
|
|||||||
case '季卡(活动)':
|
case '季卡(活动)':
|
||||||
$cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 600;
|
$cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 600;
|
||||||
|
|
||||||
|
break;
|
||||||
|
case '双月卡(活动)':
|
||||||
|
$cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 400;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case '年卡':
|
case '年卡':
|
||||||
$cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 2400;
|
$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));
|
$refund += round(60/7*intval(handle_time($info['RefundRestTime'])/86400));
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
// case '月卡(活动)':
|
case '月卡(活动)':
|
||||||
case '月卡':
|
case '月卡':
|
||||||
if ((86400*30 - handle_time($info['RefundRestTime'])) < 7200) {
|
if ((86400*30 - handle_time($info['RefundRestTime'])) < 7200) {
|
||||||
$refund += 200;
|
$refund += 200;
|
||||||
@@ -294,6 +301,13 @@ function qx_rule($product, $refunds, $product_type = true)
|
|||||||
$refund += round(600/90*intval(handle_time($info['RefundRestTime'])/86400));
|
$refund += round(600/90*intval(handle_time($info['RefundRestTime'])/86400));
|
||||||
}
|
}
|
||||||
break;
|
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 '年卡':
|
case '年卡':
|
||||||
if ((86400*365 - handle_time($info['RefundRestTime'])) < 7200) {
|
if ((86400*365 - handle_time($info['RefundRestTime'])) < 7200) {
|
||||||
$refund += 2400;
|
$refund += 2400;
|
||||||
@@ -419,7 +433,7 @@ function xianfeng($product, $refunds)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case '双月卡(活动)':
|
case '双月卡(活动)':
|
||||||
$cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 120;
|
$cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 108;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user