From 7f20a52f67d417fd39da57b421c5a01e6554ae13 Mon Sep 17 00:00:00 2001 From: xcxnig Date: Wed, 2 May 2018 10:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E8=87=AA=E5=8A=A8=E6=B8=85?= =?UTF-8?q?=E7=90=86=E5=85=8D=E8=B4=B9=E7=94=A8=E6=88=B7=E6=97=B6=E7=9A=84?= =?UTF-8?q?=E6=9C=80=E4=BD=8E=E9=87=91=E9=A2=9D=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 金额请写正整数~正整数~正整数~ --- app/Command/Job.php | 6 ++++-- config/.config.php.example | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/Command/Job.php b/app/Command/Job.php index c0c4ec78..b3208892 100644 --- a/app/Command/Job.php +++ b/app/Command/Job.php @@ -700,7 +700,8 @@ class Job - if ((int)Config::get('enable_auto_clean_uncheck_days')!=0 && max($user->last_check_in_time, strtotime($user->reg_date)) + ((int)Config::get('enable_auto_clean_uncheck_days')*86400) < time() && $user->class == 0) { + if ((int)Config::get('enable_auto_clean_uncheck_days')!=0 && max($user->last_check_in_time, strtotime($user->reg_date)) + ((int)Config::get('enable_auto_clean_uncheck_days')*86400) < time() && $user->class == 0 && $user->money <= (int)Config::get('auto_clean_min_money')) { + if (Config::get('enable_auto_clean_uncheck')=='true') { $subject = Config::get('appName')."-您的用户账户已经被删除了"; $to = $user->email; @@ -728,7 +729,8 @@ class Job } - if ((int)Config::get('enable_auto_clean_unused_days')!=0 && max($user->t, strtotime($user->reg_date)) + ((int)Config::get('enable_auto_clean_unused_days')*86400) < time() && $user->class == 0) { + if ((int)Config::get('enable_auto_clean_unused_days')!=0 && max($user->t, strtotime($user->reg_date)) + ((int)Config::get('enable_auto_clean_unused_days')*86400) < time() && $user->class == 0 && $user->money <= (int)Config::get('auto_clean_min_money')) { + if (Config::get('enable_auto_clean_unused')=='true') { $subject = Config::get('appName')."-您的用户账户已经被删除了"; $to = $user->email; diff --git a/config/.config.php.example b/config/.config.php.example index 78c2c9c1..3a159dea 100644 --- a/config/.config.php.example +++ b/config/.config.php.example @@ -99,6 +99,7 @@ $System_Config['enable_account_expire_delete']='false'; //账户到期之 $System_Config['enable_account_expire_delete_days']='0'; //账户到期几天之后会删除账户 $System_Config['enable_auto_clean_uncheck']='false'; //没签到的0级用户自动清理开关 $System_Config['enable_auto_clean_uncheck_days']='7'; //自动清理多少天没签到的0级用户 +$System_Config['auto_clean_min_money']='1'; //自动清理时余额低于多少的0级用户会被清理(int变量 不要写小数) $System_Config['enable_auto_clean_unused']='false'; //未使用的0级用户自动清理开关 $System_Config['enable_auto_clean_unused_days']='30'; //自动清理多少天没使用的0级用户 $System_Config['enable_kill']='true'; //是否允许用户注销账户