|
|
@@ -20,6 +20,7 @@ use app\common\dao\user\AwardLakeDao;
|
|
|
use app\common\dao\user\AwardLakeLogDao;
|
|
|
use app\common\model\store\order\StoreOrder;
|
|
|
use app\common\model\user\AwardIntegralPrice;
|
|
|
+use app\common\model\user\AwardIntegralPriceDay;
|
|
|
use app\common\model\user\AwardLakeLog;
|
|
|
use app\common\model\user\UserExtract;
|
|
|
use app\common\repositories\BaseRepository;
|
|
|
@@ -89,11 +90,13 @@ class AwardIntegralPriceRepository extends BaseRepository
|
|
|
/** @var AwardIntegralPriceDayDao $AwardIntegralPriceDayDao */
|
|
|
$AwardIntegralPriceDayDao = app()->make(AwardIntegralPriceDayDao::class);
|
|
|
|
|
|
- $AwardIntegralPriceDayDao->create(['day' => strtotime('-25 day'), 'all_add_price' => $rise, 'day_add_price' => $day_25_rise]); //保存今天增长的总价格和每日增长价格
|
|
|
+ $AwardIntegralPriceDayDao->create(['day' => time(), 'all_add_price' => $rise, 'day_add_price' => $day_25_rise]); //保存今天增长的总价格和每日增长价格
|
|
|
$day_25 = strtotime('-25 day');
|
|
|
@file_put_contents('quanju4.txt', $day_25 . "-25天前的时间\r\n", 8);
|
|
|
- $add_price = $AwardIntegralPriceDayDao->search([])->where('day','>' ,$day_25)->sum('day_add_price');
|
|
|
+// $add_price = $AwardIntegralPriceDayDao->search([])->where('day','>' ,$day_25)->sum('day_add_price');
|
|
|
+ $add_price = AwardIntegralPriceDay::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', AwardIntegralPriceDay::getLastSql() . "-91110212\r\n", 8);
|
|
|
|
|
|
@file_put_contents('quanju4.txt', $basePrice . "-之前的总价总价\r\n", 8);
|
|
|
@file_put_contents('quanju4.txt', $add_price . "-963\r\n", 8);
|