mirror of
https://github.com/v2board/v2board.git
synced 2025-02-10 23:49:12 +08:00
update
This commit is contained in:
parent
5070c851ed
commit
0de055a36b
@ -60,11 +60,14 @@ class SendRemindMail extends Command
|
||||
}
|
||||
|
||||
private function remindTraffic ($user) {
|
||||
if ((($user->u + $user->d) / $user->transfer_enable * 100) >= 80) {
|
||||
function isWarnValue ($ud, $transfer_enable) {
|
||||
if ($ud <= 0) return false;
|
||||
if (($ud / $transfer_enable * 100) < 80) return false;
|
||||
return true;
|
||||
}
|
||||
if (isWarnValue()) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user