exam support priority + peer suppoert ipv4&ipv6

This commit is contained in:
xiaomlove
2022-04-18 19:07:35 +08:00
parent 107da8e335
commit 55138da862
46 changed files with 302 additions and 115 deletions

View File

@@ -168,9 +168,10 @@ function user_to_peasant($down_floor_gb, $minratio){
function ban_user_with_leech_warning_expired()
{
$dt = date("Y-m-d H:i:s"); // take date time
// VIP or above won't effect
// VIP or above and donated won't effect
$results = \App\Models\User::query()
->where('class', '<', \App\Models\User::CLASS_VIP)
->where('donor', 'no')
->where('enabled', \App\Models\User::ENABLED_YES)
->where('leechwarn', 'yes')
->where('leechwarnuntil', '<', $dt)