besprechung
This commit is contained in:
@@ -19,8 +19,13 @@ class HttpRequest {
|
||||
Response(requestOptions: RequestOptions(path: ''), statusCode: 400);
|
||||
|
||||
try {
|
||||
response = await dio.post(prefs.getString('apiAddress') ?? "",
|
||||
if (saveDataMap != null && saveDataMap.containsKey("CID") || saveDataString != null && saveDataString.contains("CID")) {
|
||||
response = await dio.post(prefs.getString('fotofallenApiAddress') ?? "",
|
||||
data: saveDataMap == null ? saveDataString : jsonEncode(saveDataMap));
|
||||
} else {
|
||||
response = await dio.post(prefs.getString('exkursionenApiAddress') ?? "",
|
||||
data: saveDataMap == null ? saveDataString : jsonEncode(saveDataMap));
|
||||
}
|
||||
|
||||
return response.statusCode!;
|
||||
} on DioException {
|
||||
|
||||
Reference in New Issue
Block a user