Fix: Correct BASE_SERVER URL for debug and release builds

The BASE_SERVER constant was incorrectly assigning the release URL to debug builds and vice-versa. This commit fixes the logic to ensure the correct API endpoint is used for each build type.
This commit is contained in:
2025-09-15 13:46:01 +08:00
parent 6c7be4ba47
commit 68273ae166

View File

@@ -4,7 +4,7 @@ object ConstVars {
// api 地址 - 根据构建类型自动选择 // api 地址 - 根据构建类型自动选择
// Debug: http://192.168.0.201:8088 // Debug: http://192.168.0.201:8088
// Release: https://rider-pro.aiosman.com/beta_api // Release: https://rider-pro.aiosman.com/beta_api
val BASE_SERVER = if (!BuildConfig.DEBUG) { val BASE_SERVER = if (BuildConfig.DEBUG) {
"http://47.109.137.67:6363" // Debug环境 "http://47.109.137.67:6363" // Debug环境
} else { } else {
"https://rider-pro.aiosman.com/beta_api" // Release环境 "https://rider-pro.aiosman.com/beta_api" // Release环境