|
@@ -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');
|
|
|
}
|
|
}
|
|
|
|
|
|