|
|
|
@ -616,7 +616,7 @@ class ConsoleController extends Think {
|
|
|
|
|
$hasNext = false;
|
|
|
|
|
}
|
|
|
|
|
$userIds = array_column($testingUsers, 'user_id');
|
|
|
|
|
$users = M('user', 'tab_')->field(['id', 'login_time'])->where(['id' => ['in', $userIds]])->select();
|
|
|
|
|
$users = M('user', 'tab_')->field(['id', 'account', 'login_time'])->where(['id' => ['in', $userIds]])->select();
|
|
|
|
|
$users = index_by_column('id', $users);
|
|
|
|
|
$unloginLimitTime = 7 * 24 * 3600;
|
|
|
|
|
$unloginUserIds = [];
|
|
|
|
@ -629,7 +629,7 @@ class ConsoleController extends Think {
|
|
|
|
|
}
|
|
|
|
|
if (count($unloginUserIds) > 0) {
|
|
|
|
|
M('testing_user', 'tab_')->where(['user_id' => ['in', $unloginUserIds]])->save([
|
|
|
|
|
'status' => 2
|
|
|
|
|
'status' => 3
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
} while($hasNext);
|
|
|
|
|