This commit is contained in:
cyh 2025-03-19 10:48:00 +08:00
parent 3040fcfcc2
commit 5834af4bb2
4 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import android.util.Log
import com.google.gson.Gson
import com.orhanobut.logger.Logger
import com.tencent.mmkv.MMKV
import com.yingmao.clash.app.MainApplication
import com.yingmao.clash.base.PublicViewMode
import com.yingmao.clash.conf.BZYConstants
import com.yingmao.clash.entity.CheckLoginRsp
@ -247,6 +248,7 @@ class RechargeViewModel : PublicViewMode() {
val params = mutableMapOf(
"phToken" to token,
"phoneNumber" to phoneNumber,
// "OAID" to MainApplication.OAID,
)
httpApi.checkLogin(params)
}

View File

@ -84,6 +84,7 @@ class LoginAtyVM : PublicViewMode() {
val params = mutableMapOf(
"phToken" to token,
"phoneNumber" to phoneNumber,
// "OAID" to MainApplication.OAID,
)
Log.d("checkLogin params==>${params}")
doAsyncEncodeStr(HttpReqType.CHECK_LOGIN, CheckLoginRsp::class.java) {

View File

@ -12,6 +12,7 @@ import com.yingmao.clash.act.NewMainActivity
import com.yingmao.clash.base.PublicViewMode
import com.cncat.vpn.common.log.Log
import com.google.gson.Gson
import com.yingmao.clash.app.MainApplication
import com.yingmao.clash.conf.BZYConstants
import com.yingmao.clash.entity.CheckLoginRsp
import com.yingmao.clash.entity.ClashNodebBean
@ -102,6 +103,7 @@ class MainAtyVM : PublicViewMode() {
val params = mutableMapOf(
"phToken" to token,
"phoneNumber" to phoneNumber,
// "OAID" to MainApplication.OAID,
)
doAsyncEncodeStr(HttpReqType.CHECK_LOGIN, CheckLoginRsp::class.java) {
httpApi.checkLogin(

View File

@ -6,6 +6,7 @@ import com.orhanobut.logger.Logger
import com.tencent.mmkv.MMKV
import com.yingmao.clash.BuildConfig
import com.yingmao.clash.app.MainApplication
import com.yingmao.clash.base.PublicViewMode
@ -33,6 +34,7 @@ class SplashAtyVM : PublicViewMode() {
val params: Map<String, String> = mutableMapOf(
"phToken" to token,
"phoneNumber" to phoneNumber,
// "OAID" to MainApplication.OAID,
)
doAsyncEncodeStr(HttpReqType.CHECK_LOGIN, CheckLoginRsp::class.java) {
httpApi.checkLogin(