testing new mining tax

This commit is contained in:
2021-05-25 01:55:10 +09:00
parent 7c14c15841
commit c0d65d55d1

View File

@@ -76,6 +76,7 @@ class TestController extends Controller
//Declare variables //Declare variables
$mailDelay = 15; $mailDelay = 15;
$config = config('esi'); $config = config('esi');
$mains = new Collection;
/** /**
* This section will determine if users are mains or alts of a main. * This section will determine if users are mains or alts of a main.
@@ -91,7 +92,13 @@ class TestController extends Controller
//Get the unique character ids from the ledgers in the previous statement //Get the unique character ids from the ledgers in the previous statement
$tempMains = $tempMains->unique()->values()->all(); $tempMains = $tempMains->unique()->values()->all();
dd($tempMains); for($i = 0; $i < sizeof($tempMains); $i++) {
if(UserAlt::where(['character_id' => $tempMains[$i]])->count() == 0) {
$mains->push($tempMains[$i]);
}
}
dd($mains);
/** /**
* For each of the users, let's determine if there are any ledgers, * For each of the users, let's determine if there are any ledgers,