- 在系统配置中添加"award_integral_price"字段,用于设置分红积分基准价格 - 添加对分红积分基准价格的验证,确保其值大于 0 - 优化了代码格式,调整了数组元素的缩进
@@ -41,7 +41,7 @@ class AwardIntegralPriceRepository extends BaseRepository
if (!$day) {
$day = date('Y-m-d');
}
- if ($info = $this->dao->search(['day' => date('Y-m-d')])->find()) {
+ if ($info = $this->dao->search(['day' => $day])->find()) {
return $info->toArray();
@file_put_contents('yesterday.txt', AwardIntegralPrice::getLastSql() . PHP_EOL, FILE_APPEND);