WIN-2308041133\Administrator 4 maanden geleden
bovenliggende
commit
9d40ab6776
1 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 3 1
      app/common/repositories/user/AwardIntegralPriceRepository.php

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

@@ -44,7 +44,7 @@ class AwardIntegralPriceRepository extends BaseRepository
     public function awardIntegralPrice($day = '')
     public function awardIntegralPrice($day = '')
     {
     {
         if (!$day) {
         if (!$day) {
-            $day = date('Y-m-d');
+            $day = date('Y-m-d',strtotime('-1 day'));
         }
         }
         if ($info = $this->dao->search(['day' => $day])->find()) {
         if ($info = $this->dao->search(['day' => $day])->find()) {
             return $info->toArray();
             return $info->toArray();
@@ -76,6 +76,8 @@ class AwardIntegralPriceRepository extends BaseRepository
 
 
         $rise = $num > 0 ? bcdiv($sum_achievement, $num, 3) : 0;
         $rise = $num > 0 ? bcdiv($sum_achievement, $num, 3) : 0;
         $price = bcadd($rise, $basePrice, 3);
         $price = bcadd($rise, $basePrice, 3);
+
+
         return compact('basePrice', 'price', 'rise', 'achievement', 'commission', 'num');
         return compact('basePrice', 'price', 'rise', 'achievement', 'commission', 'num');
     }
     }