OperationaldataApi: networks can now come from user

This commit is contained in:
Frank Schubert
2025-07-30 18:01:41 +02:00
parent 1188a7b20e
commit 5a3e6f6984
2 changed files with 49 additions and 11 deletions
@@ -27,9 +27,9 @@ class SnoppCitycom extends Modules\ApiControllerModule
if($this->post["execution_date"]) {
try {
$execution_date = new DateTime($this->post["execution_date"]);
$execution_date = new \DateTime($this->post["execution_date"]);
} catch(\Exception $e) {
return mfResponse::BadRequest(["message" => "Invalid Timestamp format"]);
return \mfResponse::BadRequest(["message" => "Invalid Timestamp format"]);
}
}
@@ -57,8 +57,8 @@ class SnoppCitycom extends Modules\ApiControllerModule
}
$cc_home_id = \Citycom_OanApiHelper::hausnummerExtrefToCitycomId($wohneinheit->extref);
$data["bb_up"] = $bb_up;
$data["bb_down"] = $bb_down;
$data["up"] = $bb_up;
$data["down"] = $bb_down;
$data["product_name"] = false;
$data["execution_date"] = ($execution_date) ? $execution_date->format("Y-m-d") : false;
$data["services"] = CITYCOM_OAN_API_SERVICES_FOR_ORDER;