From d1a9e3312387b6c47e6186af506787a8a66369d1 Mon Sep 17 00:00:00 2001 From: lmw <125975490@qq.com> Date: 星期六, 09 十一月 2024 18:40:36 +0800 Subject: [PATCH] fix --- app/src/main/java/com/sinata/xqmuse/ui/login/BindPhoneActivity.kt | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/app/src/main/java/com/sinata/xqmuse/ui/login/BindPhoneActivity.kt b/app/src/main/java/com/sinata/xqmuse/ui/login/BindPhoneActivity.kt index c723bd6..a99e2df 100644 --- a/app/src/main/java/com/sinata/xqmuse/ui/login/BindPhoneActivity.kt +++ b/app/src/main/java/com/sinata/xqmuse/ui/login/BindPhoneActivity.kt @@ -1,5 +1,6 @@ package com.sinata.xqmuse.ui.login +import android.content.Intent import android.os.CountDownTimer import cn.sinata.xldutils.utils.isValidPhone import cn.sinata.xldutils.utils.myToast @@ -18,6 +19,9 @@ override fun setContentView() = R.layout.activity_bind_phone private lateinit var timer: CountDownTimer + private val openid by lazy { intent.getStringExtra("openid") } + private val token by lazy { intent.getStringExtra("token") } + override fun initClick() { tv_action.onClick { if (!cb_rule.isChecked) { @@ -34,7 +38,12 @@ myToast("请输入6位验证码") return@onClick } - //TODO API + HttpManager.verifyCellPhone(token?:"",phone,code,openid?:"").request(this@BindPhoneActivity){_,data-> + val result = Intent() + result.putExtra("token",token) + setResult(RESULT_OK,result) + finish() + } } tv_code.onClick { -- Gitblit v1.7.1