- New "Intel module" for Citadel tracking, closed #246

- updated "Select2" js lib `4.0.3` -> `4.0.6-rc.1`
- fixed some login Issues
- fixed broken `map/*` reroute URL wildcard replacement
- fixed broken cache layer for Universe models
This commit is contained in:
Mark Friedrich
2018-05-01 19:51:17 +02:00
parent 9641b2e075
commit efd768974f
79 changed files with 4504 additions and 427 deletions

View File

@@ -7,6 +7,7 @@
*/
namespace Controller\Api;
use Controller;
use Data\Mapper as Mapper;
use lib\Config;
@@ -441,6 +442,30 @@ class System extends Controller\AccessController {
echo json_encode($return);
}
/**
* @param \Base $f3
* @throws \Exception
*/
public function getData(\Base $f3){
$requestData = (array)$f3->get('POST');
$mapId = (int)$requestData['mapId'];
$systemId = (int)$requestData['systemId'];
$activeCharacter = $this->getCharacter();
$return = (object) [];
if(
!is_null($map = $activeCharacter->getMap($mapId)) &&
!is_null($system = $map->getSystemById($systemId))
){
$return->system = $system->getData();
$return->system->signatures = $system->getSignaturesData();
$return->system->structures = $system->getStructuresData();
}
echo json_encode($return);
}
/**
* delete systems and all its connections from map
* -> set "active" flag