From 25ea1785e9eca92eb869d0bbf00ca02ffa75ff59 Mon Sep 17 00:00:00 2001 From: limu <610543851@qq.com> Date: Fri, 12 Jan 2024 09:37:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/command/dayUserValue.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/command/dayUserValue.php b/app/command/dayUserValue.php index df1a09e..06e171b 100644 --- a/app/command/dayUserValue.php +++ b/app/command/dayUserValue.php @@ -35,7 +35,7 @@ class dayUserValue extends Command { $config = systemConfig('brand_config'); - $config_start = systemConfig('brand_config') ?? 1; + $config_start = (int)systemConfig('brand_config') ?? 1; $config_growth = systemConfig('brand_growth'); if (empty($config)) { echo '无配置'; @@ -53,10 +53,10 @@ class dayUserValue extends Command $days = $config_start + 1; foreach ($resConfig as $rk => $rv) { if ($days >= $rv['start'] && $rv['bili'] > 0) { - if ($config_growth) { + if (empty($config_growth)) { $growth_rate = $rv['bili']; } else { - $growth_rate = bcadd($v['growth_rate'], $rv['bili'], 2); + $growth_rate = bcadd($config_growth, $rv['bili'], 2); } }