|
|
@@ -15,6 +15,7 @@ namespace app\common\repositories\user;
|
|
|
|
|
|
|
|
|
use app\common\dao\user\AwardIntegralPriceDao;
|
|
|
+use app\common\model\user\AwardIntegralPrice;
|
|
|
use app\common\repositories\BaseRepository;
|
|
|
|
|
|
|
|
|
@@ -43,6 +44,7 @@ class AwardIntegralPriceRepository extends BaseRepository
|
|
|
if ($info = $this->dao->search(['day' => date('Y-m-d')])->find()) {
|
|
|
return $info->toArray();
|
|
|
}
|
|
|
+ @file_put_contents('yesterday.txt', AwardIntegralPrice::getLastSql() . PHP_EOL, FILE_APPEND);
|
|
|
$yesterday_price = $this->dao->search(['day' => date('Y-m-d', strtotime('-1 day', strtotime($day)))])->find();
|
|
|
if ($yesterday_price) {
|
|
|
$basePrice = $yesterday_price->price;
|