Finish mzl_dev
This commit is contained in:
@@ -23,7 +23,7 @@ class CheckWeb
|
|||||||
}
|
}
|
||||||
|
|
||||||
new Crontab('*/3 * * * * *', function(){
|
new Crontab('*/3 * * * * *', function(){
|
||||||
$userIds = User::where('status', 1)->toArray();
|
$userIds = User::where('status', 1)->pluck('id')->toArray();
|
||||||
foreach ($userIds as $userId) {
|
foreach ($userIds as $userId) {
|
||||||
$status = Redis::hGet('user:check:sign'.$userId, 'status');
|
$status = Redis::hGet('user:check:sign'.$userId, 'status');
|
||||||
if ($status) {
|
if ($status) {
|
||||||
|
|||||||
Reference in New Issue
Block a user