From 5e2fbd63a4fcbd86de628d7dcccafe52cfdb2541 Mon Sep 17 00:00:00 2001 From: "LAPTOP-EJ2PF6VA\\genie" Date: Sat, 11 Apr 2026 09:22:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E6=9E=B6=E6=99=82=E5=A0=B1=E9=8C=AF?= =?UTF-8?q?=E7=9A=84=E7=A8=8B=E5=BC=8F=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/src/main/AndroidManifest.xml | 2 ++ lib/auth_api.dart | 4 +++- lib/historys/login_page.dart | 2 +- pubspec.yaml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index c66dea4..3c9f7be 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -42,4 +42,6 @@ + + diff --git a/lib/auth_api.dart b/lib/auth_api.dart index b5ee251..166d1e4 100644 --- a/lib/auth_api.dart +++ b/lib/auth_api.dart @@ -43,7 +43,9 @@ class AuthApiService { return {'code': -1, 'msg': '伺服器響應錯誤: ${response.statusCode}'}; } } catch (e) { - return {'code': -1, 'msg': '網路連線異常'}; + // return {'code': -1, 'msg': '網路連線異常'}; + print("DEBUG: API Error -> $e"); // 在 Console 看真正的錯誤類型 + return {'code': -1, 'msg': '網路連線異常: $e'}; } } } \ No newline at end of file diff --git a/lib/historys/login_page.dart b/lib/historys/login_page.dart index 95376ce..b81dddf 100644 --- a/lib/historys/login_page.dart +++ b/lib/historys/login_page.dart @@ -7,7 +7,7 @@ import '../main.dart'; import '../auth_manager.dart'; // 確保路徑正確 // API 相關常數 -const String BASE_IP = "https://api.gex.com.tw:8033"; +const String BASE_IP = "https://api.gex.com.tw"; //const String API_ENDPOINT = "xapi/v1/eis_demo/checklogin/2/"; //const String API_URL = "$BASE_IP/$API_ENDPOINT"; diff --git a/pubspec.yaml b/pubspec.yaml index 94fcc68..e9f8634 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.0+4 +version: 1.0.0+7 environment: sdk: ^3.10.0