changed ext.service urls

This commit is contained in:
Mohamed Nouffer
2023-07-14 19:43:46 +05:30
parent b3a9e35f76
commit b0a91e301e
2 changed files with 16 additions and 16 deletions

View File

@ -754,20 +754,20 @@ class DestinationController extends GetxController {
print("------ destination controller destinationcount-------- ${destinationCount}-------- :::::"); print("------ destination controller destinationcount-------- ${destinationCount}-------- :::::");
MatrixService.getDestinations(value).then((mat){ // MatrixService.getDestinations(value).then((mat){
print(" matrix is ------- ${mat}"); // print(" matrix is ------- ${mat}");
matrix = mat; // matrix = mat;
try{ // try{
getRoutePoints(); // getRoutePoints();
destinationCount.value = destinations.length; // destinationCount.value = destinations.length;
} // }
catch(_){ // catch(_){
skip_gps = false; // skip_gps = false;
return; // return;
} // }
}); // });
}); });
} }

View File

@ -56,7 +56,7 @@ class ExternalService {
db.insertRogaining(_rog); db.insertRogaining(_rog);
} }
else { else {
String url = 'https://natnats.mobilous.com/start_from_rogapp'; String url = 'https://rogaining.sumasen.net/gifuroge/start_from_rogapp';
print('++++++++${url}'); print('++++++++${url}');
final http.Response response = await http.post( final http.Response response = await http.post(
Uri.parse(url), Uri.parse(url),
@ -81,7 +81,7 @@ class ExternalService {
Future<Map<String, dynamic>> makeCheckpoint(int user_id, String token, String checkin_time, String teamname, int cp, String eventcode, String imageurl) async { Future<Map<String, dynamic>> makeCheckpoint(int user_id, String token, String checkin_time, String teamname, int cp, String eventcode, String imageurl) async {
Map<String, dynamic> _res = {}; Map<String, dynamic> _res = {};
String url = 'https://natnats.mobilous.com/checkin_from_rogapp'; String url = 'https://rogaining.sumasen.net/gifuroge/checkin_from_rogapp';
print('++++++++${url}'); print('++++++++${url}');
final IndexController indexController = Get.find<IndexController>(); final IndexController indexController = Get.find<IndexController>();
@ -232,7 +232,7 @@ class ExternalService {
}), }),
); );
String url = 'https://natnats.mobilous.com/goal_from_rogapp'; String url = 'https://rogaining.sumasen.net/gifuroge/goal_from_rogapp';
print('++++++++${url}'); print('++++++++${url}');
if (response.statusCode == 201) { if (response.statusCode == 201) {
Map<String, dynamic> _res = json.decode(utf8.decode(response.bodyBytes)); Map<String, dynamic> _res = json.decode(utf8.decode(response.bodyBytes));
@ -264,7 +264,7 @@ class ExternalService {
static Future<Map<String, dynamic>> usersEventCode(String teamcode, String password) async { static Future<Map<String, dynamic>> usersEventCode(String teamcode, String password) async {
Map<String, dynamic> _res = {}; Map<String, dynamic> _res = {};
String url = "https://natnats.mobilous.com/check_event_code?zekken_number=${teamcode}&password=${password}"; String url = "https://rogaining.sumasen.net/gifuroge/check_event_code?zekken_number=${teamcode}&password=${password}";
print('++++++++${url}'); print('++++++++${url}');
final http.Response response = await http.get( final http.Response response = await http.get(
Uri.parse(url), Uri.parse(url),