2024-09-02 ほぼOK
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user