修正上架時 Google Play 檢查出的 issue
This commit is contained in:
@@ -9,7 +9,7 @@ import '../auth_manager.dart'; // 確保引入 AuthManager
|
||||
|
||||
class GenericApiService {
|
||||
// [修改] 移除 const COMMON_API_URL,改為方法獲取
|
||||
static const String BASE_IP = "https://api.gex.com.tw:8033";
|
||||
static const String BASE_IP = "https://api.gex.com.tw"; // :8033
|
||||
|
||||
// 修改後的動態 URL 產生器,支援傳入不同的 store procedure 與回傳 dataset 數
|
||||
String _getProcedureUrl(String endpoint, String version) {
|
||||
@@ -75,8 +75,8 @@ class GenericApiService {
|
||||
String _getDynamicUrl() {
|
||||
// 從 AuthManager 獲取目前登入的公司別,若無則預設 eis_demo
|
||||
final String db = AuthManager().currentCompany ?? "demo";
|
||||
final String db_all = "eis_" + db;
|
||||
return "$BASE_IP/xapi/v2/$db_all/orm_api_v2/2/";
|
||||
final String dbAll = "eis_$db";
|
||||
return "$BASE_IP/xapi/v2/$dbAll/orm_api_v2/2/";
|
||||
}
|
||||
|
||||
/// 通用的獲取列表方法
|
||||
|
||||
Reference in New Issue
Block a user