2024-09-02 ほぼOK

This commit is contained in:
2024-09-02 21:25:19 +09:00
parent dc58dc0584
commit fe46d46ab6
59 changed files with 2006 additions and 677 deletions

View File

@ -51,8 +51,8 @@ class ExternalService {
//print("--- _team : ${_team}-----");
String eventCode = indexController.currentUser[0]["user"]["event_code"];
if (indexController.connectionStatusName.value != "wifi" &&
indexController.connectionStatusName.value != "mobile") {
if (indexController.connectionStatusName.value.toLowerCase() != "wifi" &&
indexController.connectionStatusName.value.toLowerCase() != "mobile") {
debugPrint("== No network ==");
DatabaseHelper db = DatabaseHelper.instance;
Rog rog = Rog(
@ -114,8 +114,8 @@ class ExternalService {
//int teamId = indexController.teamController.teams[0];
if (indexController.connectionStatusName.value != "wifi" &&
indexController.connectionStatusName.value != "mobile") {
if (indexController.connectionStatusName.value.toLowerCase() != "wifi" &&
indexController.connectionStatusName.value.toLowerCase() != "mobile") {
debugPrint("== checkin without network ==");
DatabaseHelper db = DatabaseHelper.instance;
@ -326,8 +326,8 @@ class ExternalService {
//print("--- _team : ${_team}-----");
String eventCode = indexController.currentUser[0]["user"]["event_code"];
if (indexController.connectionStatusName.value != "wifi" &&
indexController.connectionStatusName.value != "mobile") {
if (indexController.connectionStatusName.value.toLowerCase() != "wifi" &&
indexController.connectionStatusName.value.toLowerCase() != "mobile") {
return Future.value(false);
} else {
String serverUrl = ConstValues.currentServer();
@ -376,8 +376,8 @@ class ExternalService {
List<GpsData> gpsDataList = [];
if (indexController.connectionStatusName.value != "wifi" &&
indexController.connectionStatusName.value != "mobile") {
if (indexController.connectionStatusName.value.toLowerCase() != "wifi" &&
indexController.connectionStatusName.value.toLowerCase() != "mobile") {
return Future.value(false);
} else {
// Step 1: Fetch data from the local database