fix
This commit is contained in:
parent
3040fcfcc2
commit
5834af4bb2
|
|
@ -4,6 +4,7 @@ import android.util.Log
|
||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
import com.orhanobut.logger.Logger
|
import com.orhanobut.logger.Logger
|
||||||
import com.tencent.mmkv.MMKV
|
import com.tencent.mmkv.MMKV
|
||||||
|
import com.yingmao.clash.app.MainApplication
|
||||||
import com.yingmao.clash.base.PublicViewMode
|
import com.yingmao.clash.base.PublicViewMode
|
||||||
import com.yingmao.clash.conf.BZYConstants
|
import com.yingmao.clash.conf.BZYConstants
|
||||||
import com.yingmao.clash.entity.CheckLoginRsp
|
import com.yingmao.clash.entity.CheckLoginRsp
|
||||||
|
|
@ -247,6 +248,7 @@ class RechargeViewModel : PublicViewMode() {
|
||||||
val params = mutableMapOf(
|
val params = mutableMapOf(
|
||||||
"phToken" to token,
|
"phToken" to token,
|
||||||
"phoneNumber" to phoneNumber,
|
"phoneNumber" to phoneNumber,
|
||||||
|
// "OAID" to MainApplication.OAID,
|
||||||
)
|
)
|
||||||
httpApi.checkLogin(params)
|
httpApi.checkLogin(params)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -84,6 +84,7 @@ class LoginAtyVM : PublicViewMode() {
|
||||||
val params = mutableMapOf(
|
val params = mutableMapOf(
|
||||||
"phToken" to token,
|
"phToken" to token,
|
||||||
"phoneNumber" to phoneNumber,
|
"phoneNumber" to phoneNumber,
|
||||||
|
// "OAID" to MainApplication.OAID,
|
||||||
)
|
)
|
||||||
Log.d("checkLogin params==>${params}")
|
Log.d("checkLogin params==>${params}")
|
||||||
doAsyncEncodeStr(HttpReqType.CHECK_LOGIN, CheckLoginRsp::class.java) {
|
doAsyncEncodeStr(HttpReqType.CHECK_LOGIN, CheckLoginRsp::class.java) {
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ import com.yingmao.clash.act.NewMainActivity
|
||||||
import com.yingmao.clash.base.PublicViewMode
|
import com.yingmao.clash.base.PublicViewMode
|
||||||
import com.cncat.vpn.common.log.Log
|
import com.cncat.vpn.common.log.Log
|
||||||
import com.google.gson.Gson
|
import com.google.gson.Gson
|
||||||
|
import com.yingmao.clash.app.MainApplication
|
||||||
import com.yingmao.clash.conf.BZYConstants
|
import com.yingmao.clash.conf.BZYConstants
|
||||||
import com.yingmao.clash.entity.CheckLoginRsp
|
import com.yingmao.clash.entity.CheckLoginRsp
|
||||||
import com.yingmao.clash.entity.ClashNodebBean
|
import com.yingmao.clash.entity.ClashNodebBean
|
||||||
|
|
@ -102,6 +103,7 @@ class MainAtyVM : PublicViewMode() {
|
||||||
val params = mutableMapOf(
|
val params = mutableMapOf(
|
||||||
"phToken" to token,
|
"phToken" to token,
|
||||||
"phoneNumber" to phoneNumber,
|
"phoneNumber" to phoneNumber,
|
||||||
|
// "OAID" to MainApplication.OAID,
|
||||||
)
|
)
|
||||||
doAsyncEncodeStr(HttpReqType.CHECK_LOGIN, CheckLoginRsp::class.java) {
|
doAsyncEncodeStr(HttpReqType.CHECK_LOGIN, CheckLoginRsp::class.java) {
|
||||||
httpApi.checkLogin(
|
httpApi.checkLogin(
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ import com.orhanobut.logger.Logger
|
||||||
|
|
||||||
import com.tencent.mmkv.MMKV
|
import com.tencent.mmkv.MMKV
|
||||||
import com.yingmao.clash.BuildConfig
|
import com.yingmao.clash.BuildConfig
|
||||||
|
import com.yingmao.clash.app.MainApplication
|
||||||
|
|
||||||
import com.yingmao.clash.base.PublicViewMode
|
import com.yingmao.clash.base.PublicViewMode
|
||||||
|
|
||||||
|
|
@ -33,6 +34,7 @@ class SplashAtyVM : PublicViewMode() {
|
||||||
val params: Map<String, String> = mutableMapOf(
|
val params: Map<String, String> = mutableMapOf(
|
||||||
"phToken" to token,
|
"phToken" to token,
|
||||||
"phoneNumber" to phoneNumber,
|
"phoneNumber" to phoneNumber,
|
||||||
|
// "OAID" to MainApplication.OAID,
|
||||||
)
|
)
|
||||||
doAsyncEncodeStr(HttpReqType.CHECK_LOGIN, CheckLoginRsp::class.java) {
|
doAsyncEncodeStr(HttpReqType.CHECK_LOGIN, CheckLoginRsp::class.java) {
|
||||||
httpApi.checkLogin(
|
httpApi.checkLogin(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue