WIN-2308041133\Administrator 3 bulan lalu
induk
melakukan
46d6e36e37

+ 2 - 1
app/common/repositories/user/AwardIntegralPriceRepository.php

@@ -91,7 +91,8 @@ 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', $day_25 . "-25天前的时间\r\n", 8);
+            $add_price = $AwardIntegralPriceDayDao->search([])->where('day','>' ,$day_25)->sum('day_add_price');
             @file_put_contents('quanju4.txt', sprintf("%.8f", $add_price) . "-789\r\n", 8);
 
             @file_put_contents('quanju4.txt', $basePrice . "-之前的总价总价\r\n", 8);