马上连需求更改2
This commit is contained in:
parent
9bcb8a079e
commit
4ba0f48d00
|
|
@ -39,6 +39,7 @@ import retrofit2.http.GET
|
||||||
import retrofit2.http.Header
|
import retrofit2.http.Header
|
||||||
import retrofit2.http.Headers
|
import retrofit2.http.Headers
|
||||||
import retrofit2.http.POST
|
import retrofit2.http.POST
|
||||||
|
import retrofit2.http.Query
|
||||||
import retrofit2.http.QueryMap
|
import retrofit2.http.QueryMap
|
||||||
|
|
||||||
interface HttpApi {
|
interface HttpApi {
|
||||||
|
|
@ -643,6 +644,7 @@ interface HttpApi {
|
||||||
)
|
)
|
||||||
@GET("/netbarcloud/open/countryFlag")
|
@GET("/netbarcloud/open/countryFlag")
|
||||||
suspend fun selectNodeInfo(
|
suspend fun selectNodeInfo(
|
||||||
|
@Query("invitationCode") invitationCode: String,
|
||||||
@Header("token") string: String = MMKV.defaultMMKV().decodeString(
|
@Header("token") string: String = MMKV.defaultMMKV().decodeString(
|
||||||
BZYConstants.MMKV_KEY_TOKEN
|
BZYConstants.MMKV_KEY_TOKEN
|
||||||
).toString(),
|
).toString(),
|
||||||
|
|
|
||||||
|
|
@ -359,6 +359,6 @@ class MainAtyVM : PublicViewMode() {
|
||||||
}
|
}
|
||||||
fun getSelectNodeInfo() {
|
fun getSelectNodeInfo() {
|
||||||
val httpApi = NetService.instances.createHttps(HttpApi::class.java)
|
val httpApi = NetService.instances.createHttps(HttpApi::class.java)
|
||||||
doAsync(HttpReqType.SelectNode) { httpApi.selectNodeInfo() }
|
doAsync(HttpReqType.SelectNode) { httpApi.selectNodeInfo(BuildConfig.productId) }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue