From 536840e42cace0ff408e6b68f1327da595a2efe0 Mon Sep 17 00:00:00 2001 From: limu <610543851@qq.com> Date: Tue, 16 Jan 2024 20:07:07 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/command/dayUserValue.php | 5 +++-- config/console.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/command/dayUserValue.php b/app/command/dayUserValue.php index 06e171b..2e4209e 100644 --- a/app/command/dayUserValue.php +++ b/app/command/dayUserValue.php @@ -37,8 +37,9 @@ class dayUserValue extends Command $config = systemConfig('brand_config'); $config_start = (int)systemConfig('brand_config') ?? 1; $config_growth = systemConfig('brand_growth'); - if (empty($config)) { - echo '无配置'; + $config_status = systemConfig('brand_status') ?? 0; + if (empty($config) || empty($config_status)) { + echo '无配置,或未开启'; exit; } $resConfig = []; diff --git a/config/console.php b/config/console.php index 47b478b..025113c 100644 --- a/config/console.php +++ b/config/console.php @@ -41,7 +41,7 @@ return [ 'brand' => 'app\command\brand', //社区贡献值结算 'dayValue' => 'app\command\dayValue', - //每日兑换率生成 + //每日兑换率生成· 'dayUserValue' => 'app\command\dayUserValue', //每日贡献值转增值积分 'dayUserGrowth' => 'app\command\dayUserGrowth',