This commit is contained in:
2019-05-30 03:33:19 -05:00
parent 142797926d
commit 1efc8519e0

View File

@@ -53,7 +53,6 @@ class StructureHelper {
//Record the structure information into the database
//Find if the structure exists
//$found = Structure::where(['structure_id' => $structure->structure_id])->first();
if(Structure::where(['structure_id' => $structure->structure_id])->count() == 0) {
if(isset($info->solar_system_id)) {
$solarName = $this->GetSolarSystemName($info->solar_system_id);
@@ -78,6 +77,11 @@ class StructureHelper {
} else {
$st->services = false;
}
if(isset($structure->state)) {
$st->state = $structure->state;
} else {
$st->state = 'None';
}
if(isset($structure->state_timer_start)) {
$st->state_timer_start = $this->DecodeDate($structure->state_timer_start);
}