This commit is contained in:
tschneider 2020-12-31 15:23:25 +01:00
commit 76d3e9aed1
18 changed files with 177517 additions and 46 deletions

View file

@ -73,6 +73,7 @@ class LeaguesController extends Controller
}
public function createLeagues($start_round_id, $round_count) {
Log::info("CREATE_LEAGUES");
$a=new TimeLogger("LeaguesController::createLeagues()");
Log::info($a->getStartMessage());

View file

@ -83,8 +83,10 @@ class RoundmailController extends Controller
array_push($activeMailList,$user->email);
} else {
Log::info("Season is NOT paid.");
array_push($inactive_users, $user);
array_push($inactiveMailList,$user->email);
if (!$user->deleted) {
array_push($inactive_users, $user);
array_push($inactiveMailList, $user->email);
}
}
//Log::info("user-id=".$user->id.", ".$user->name);
@ -229,9 +231,12 @@ class RoundmailController extends Controller
Log::info("Usercount: ".sizeof($users));
$emailsOfUsersWithIncompleteTipps=array();
foreach($users as $user) {
if (User::hasMissingTipp($user->id) || User::hasMissingJoker($user->id)) {
if ($user->gets_reminders) {
array_push($emailsOfUsersWithIncompleteTipps, $user->email);
// 2.Versuch nur aktiven Spielern reminder mails zu schicken
if (User::is_season_paid($user->id)=="Ja") {
if (User::hasMissingTipp($user->id) || User::hasMissingJoker($user->id)) {
if ($user->gets_reminders) {
array_push($emailsOfUsersWithIncompleteTipps, $user->email);
}
}
}
}

View file

@ -30,7 +30,6 @@ class TippsController extends Controller
foreach($rounds as $round) {
$games=Game::all()->where('round_id','=',$round->id);
foreach($games as $game) {
// Tipp erzeugen wenn noch nicht vorhanden
$tipp = DB::table('tipps')->where([
['game_id','=',$game->id],

View file

@ -798,4 +798,7 @@ class UsersController extends Controller
return view ('users.gshirt_ranking', compact('rankingDisplay','usernames', 'roundnames'));
}
public function no_payment() {
return view ('users.no_payment');
}
}