- New "station" data added, closed #858
- Improved system deeplinks. EveEye.com added, closed #859 - Improved cronjob performance for "SovereigntyData" import, closed #853 - Updated static DB dump for `eve_universe.sql`
This commit is contained in:
@@ -176,7 +176,10 @@ class Map extends Controller\AccessController {
|
||||
// get third party APIs -----------------------------------------------------------------------------------
|
||||
$return->url = [
|
||||
'ccpImageServer' => Config::getPathfinderData('api.ccp_image_server'),
|
||||
'zKillboard' => Config::getPathfinderData('api.z_killboard')
|
||||
'zKillboard' => Config::getPathfinderData('api.z_killboard'),
|
||||
'eveeye' => Config::getPathfinderData('api.eveeye'),
|
||||
'dotlan' => Config::getPathfinderData('api.dotlan'),
|
||||
'anoik' => Config::getPathfinderData('api.anoik')
|
||||
];
|
||||
|
||||
// Character default config -------------------------------------------------------------------------------
|
||||
|
||||
@@ -38,6 +38,7 @@ class System extends AbstractRestController {
|
||||
$systemData->signatures = $system->getSignaturesData();
|
||||
$systemData->sigHistory = $system->getSignaturesHistory();
|
||||
$systemData->structures = $system->getStructuresData();
|
||||
$systemData->stations = $system->getStationsData();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -111,7 +111,7 @@ class System extends Controller\AccessController {
|
||||
}
|
||||
|
||||
/**
|
||||
* set destination for specific systemIds
|
||||
* set destination for system, station or structure
|
||||
* @param \Base $f3
|
||||
* @throws \Exception
|
||||
*/
|
||||
@@ -120,25 +120,25 @@ class System extends Controller\AccessController {
|
||||
|
||||
$return = (object) [];
|
||||
$return->error = [];
|
||||
$return->systemData = [];
|
||||
$return->destData = [];
|
||||
|
||||
if( !empty($postData['systemData'] )){
|
||||
if(!empty($destData = (array)$postData['destData'])){
|
||||
$activeCharacter = $this->getCharacter();
|
||||
|
||||
$return->clearOtherWaypoints = (bool)$postData['clearOtherWaypoints'];
|
||||
$return->first = (bool)$postData['first'];
|
||||
|
||||
if( $accessToken = $activeCharacter->getAccessToken() ){
|
||||
if($accessToken = $activeCharacter->getAccessToken()){
|
||||
$options = [
|
||||
'clearOtherWaypoints' => $return->clearOtherWaypoints,
|
||||
'addToBeginning' => $return->first,
|
||||
];
|
||||
|
||||
foreach($postData['systemData'] as $systemData){
|
||||
$response = $f3->ccpClient()->setWaypoint($systemData['systemId'], $accessToken, $options);
|
||||
foreach($destData as $data){
|
||||
$response = $f3->ccpClient()->setWaypoint((int)$data['id'], $accessToken, $options);
|
||||
|
||||
if(empty($response)){
|
||||
$return->systemData[] = $systemData;
|
||||
$return->destData[] = $data;
|
||||
}else{
|
||||
$error = (object) [];
|
||||
$error->type = 'error';
|
||||
|
||||
Reference in New Issue
Block a user