马上连需求更改2

This commit is contained in:
level 2025-05-30 15:47:23 +08:00
parent 9bcb8a079e
commit 4ba0f48d00
2 changed files with 3 additions and 1 deletions

View File

@ -39,6 +39,7 @@ import retrofit2.http.GET
import retrofit2.http.Header
import retrofit2.http.Headers
import retrofit2.http.POST
import retrofit2.http.Query
import retrofit2.http.QueryMap
interface HttpApi {
@ -643,6 +644,7 @@ interface HttpApi {
)
@GET("/netbarcloud/open/countryFlag")
suspend fun selectNodeInfo(
@Query("invitationCode") invitationCode: String,
@Header("token") string: String = MMKV.defaultMMKV().decodeString(
BZYConstants.MMKV_KEY_TOKEN
).toString(),

View File

@ -359,6 +359,6 @@ class MainAtyVM : PublicViewMode() {
}
fun getSelectNodeInfo() {
val httpApi = NetService.instances.createHttps(HttpApi::class.java)
doAsync(HttpReqType.SelectNode) { httpApi.selectNodeInfo() }
doAsync(HttpReqType.SelectNode) { httpApi.selectNodeInfo(BuildConfig.productId) }
}
}