change db=house_hunter

This commit is contained in:
2026-04-17 23:34:02 +08:00
parent ed3661edd4
commit b5051db50b
39 changed files with 132 additions and 10 deletions
-1
View File
@@ -63,7 +63,6 @@ class HouseNoteApiService {
try {
final request = http.MultipartRequest(
'POST',
// Uri.parse("${GenericApiService.BASE_IP}/xapi/v2/common/upload_file"),
Uri.parse("${GenericApiService.BASE_IP}/upload/house_hunter/images")
);
// 取得本地檔案名稱
+4 -4
View File
@@ -5,7 +5,7 @@ import 'package:intl/intl.dart';
// 共用 API 常數
//const String BASE_IP = "https://api.gex.com.tw:8033";
//const String COMMON_API_ENDPOINT = "xapi/v2/house_hunter/orm_api_v2/2/";
//const String COMMON_API_ENDPOINT = "xapi/v2/eis_demo/orm_api_v2/2/";
//const String COMMON_API_URL = "$BASE_IP/$COMMON_API_ENDPOINT";
class GenericApiService {
@@ -15,7 +15,7 @@ class GenericApiService {
// 修改後的動態 URL 產生器,支援傳入不同的 store procedure 與回傳 dataset 數
String _getProcedureUrl(String endpoint, String version) {
// final String db = AuthManager().currentCompany ?? "demo"; //
final String dbAll = "house_hunter"; //
final String dbAll = "eis_demo"; //
return "$BASE_IP/xapi/v2/$dbAll/$endpoint/$version/"; //
}
@@ -89,9 +89,9 @@ class GenericApiService {
// 以下是 orm_api
String _getDynamicUrl() {
// 從 AuthManager 獲取目前登入的公司別,若無則預設 house_hunter
// 從 AuthManager 獲取目前登入的公司別,若無則預設 eis_demo
// final String db = AuthManager().currentCompany ?? "demo";
final String dbAll = "house_hunter";
final String dbAll = "eis_demo";
return "$BASE_IP/xapi/v2/$dbAll/orm_api_v2/2/";
}