This commit is contained in:
root 2019-12-30 16:25:32 +08:00
parent 5070c851ed
commit 0de055a36b

View File

@ -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()) {
}
}
}