|
@@ -244,8 +244,8 @@ class AwardIntegralServices extends BaseServices
|
|
|
$day_send = $v['day_send'];
|
|
|
$send_day = $v['send_day'];
|
|
|
$up_speed = $v['up_speed'] - $v['up_speed_used'];
|
|
|
- if ($sum < $system_check && !$test) {
|
|
|
- $send_day = $v['send_day'] + sys_config('fail_inc_send_day', 1);
|
|
|
+ if ($sum < $system_check) {
|
|
|
+ if (!$test) $send_day = $v['send_day'] + sys_config('fail_inc_send_day', 1);
|
|
|
$day_send = bcdiv((string)(($v['num'] - $v['sent_num'])), (string)$send_day, 2);
|
|
|
}
|
|
|
$up_speed = bcdiv((string)$up_speed, (string)($send_day - $v['sent_day']), 2);
|
|
@@ -264,6 +264,8 @@ class AwardIntegralServices extends BaseServices
|
|
|
$update['up_speed_used'] = $v['up_speed'];
|
|
|
$update['sent_num'] = $v['num'];
|
|
|
$update['status'] = 1;
|
|
|
+ } else {
|
|
|
+ $update['sent_num'] = bcadd((string)$v['sent_num'], (string)$real_send, 2);
|
|
|
}
|
|
|
$update['extract_num'] = bcadd((string)$real_send, (string)$v['extract_num'], 2);
|
|
|
$update['send_time'] = time();
|