|
|
@@ -78,16 +78,17 @@ class AwardIntegralPriceRepository extends BaseRepository
|
|
|
$rise = $num > 0 ? bcdiv($sum_achievement, $num, 6) : 0;
|
|
|
$add_price = 0;
|
|
|
if ($rise > 0) {
|
|
|
-
|
|
|
+ @file_put_contents('quanju4.txt', $rise . "-123\r\n", 8);
|
|
|
// 增长值分成25份
|
|
|
$day_25_rise = bcdiv($rise, 25, 6);
|
|
|
+ @file_put_contents('quanju4.txt', $day_25_rise . "-456\r\n", 8);
|
|
|
/** @var AwardIntegralPriceDayDao $AwardIntegralPriceDayDao */
|
|
|
$AwardIntegralPriceDayDao = app()->make(AwardIntegralPriceDayDao::class);
|
|
|
|
|
|
$AwardIntegralPriceDayDao->create(['day' => strtotime('-25 day'), 'price' => $rise, 'add_price' => $day_25_rise]); //保存今天增长的总价格和每日增长价格
|
|
|
$day_25 = strtotime('-25 day');
|
|
|
$add_price = $AwardIntegralPriceDayDao->search(['day' => $day_25])->sum('day_add_price');
|
|
|
-
|
|
|
+ @file_put_contents('quanju4.txt', $add_price . "-789\r\n", 8);
|
|
|
|
|
|
}
|
|
|
$price = bcadd($add_price, $basePrice, 6);
|