|
|
@@ -88,10 +88,10 @@ class AwardIntegralPriceRepository extends BaseRepository
|
|
|
$AwardIntegralPriceDayDao->create(['day' => strtotime('-25 day'), 'all_add_price' => $rise, 'day_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);
|
|
|
+ @file_put_contents('quanju4.txt', sprintf("%.8f", $add_price) . "-789\r\n", 8);
|
|
|
|
|
|
}
|
|
|
- $price = bcadd($add_price, $basePrice, 10);
|
|
|
+ $price = bcadd((string)$add_price, (string)$basePrice, 8);
|
|
|
|
|
|
@file_put_contents('quanju4.txt', time() . "-正常获取走的到这里吗\r\n", 8);
|
|
|
@file_put_contents('quanju4.txt', $price . "-总价\r\n", 8);
|