This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* @Author: kangkang
|
||||
* @Date: 2020-10-03 18:23:43
|
||||
* @LastEditors: kangkang
|
||||
* @LastEditTime: 2020-11-03 15:05:26
|
||||
* @LastEditTime: 2020-11-10 20:44:32
|
||||
*/
|
||||
$is_script = 1;
|
||||
include __DIR__ . '/../index.php';
|
||||
@@ -214,6 +214,7 @@ function no_jike($product)
|
||||
case '月卡':
|
||||
$count += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 100;
|
||||
break;
|
||||
case '双月卡(活动)':
|
||||
case '季卡':
|
||||
$count += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 300;
|
||||
break;
|
||||
@@ -247,6 +248,14 @@ function qx_rule($product, $refunds, $product_type = true)
|
||||
case '季卡':
|
||||
$cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 600;
|
||||
|
||||
break;
|
||||
case '月卡(活动)':
|
||||
$cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 200;
|
||||
|
||||
break;
|
||||
case '季卡(活动)':
|
||||
$cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 600;
|
||||
|
||||
break;
|
||||
case '年卡':
|
||||
$cost += ($package['NewBuyCount'] + $package['AgainBuyCount']) * 2400;
|
||||
@@ -267,12 +276,12 @@ function qx_rule($product, $refunds, $product_type = true)
|
||||
$refund += 60;
|
||||
}
|
||||
break;
|
||||
case '月卡':
|
||||
case '月卡(活动)':
|
||||
if ((86400 - handle_time($info['RefundRestTime'])) < 7200) {
|
||||
$refund += 200;
|
||||
}
|
||||
break;
|
||||
case '季卡':
|
||||
case '季卡(活动)':
|
||||
if ((86400 - handle_time($info['RefundRestTime'])) < 7200) {
|
||||
$refund += 600;
|
||||
}
|
||||
@@ -423,6 +432,11 @@ function xianfeng($product, $refunds)
|
||||
$refund += $info['ConnectCount'] * 168;
|
||||
}
|
||||
break;
|
||||
case '双月卡(活动)':
|
||||
if ((86400 * 90 - handle_time($info['RefundRestTime'])) < 10800) {
|
||||
$refund += $info['ConnectCount'] * 120;
|
||||
}
|
||||
break;
|
||||
case '年卡':
|
||||
if ((86400 * 365 - handle_time($info['RefundRestTime'])) < 10800) {
|
||||
$refund += $info['ConnectCount'] * 636;
|
||||
|
||||
Reference in New Issue
Block a user