上架時報錯的程式修正
This commit is contained in:
+3
-1
@@ -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'};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user