马上连注册时候问题
This commit is contained in:
parent
7c9b2fb257
commit
ee8aa1d983
|
|
@ -132,6 +132,10 @@ class RegisterActivity : BaseActivity(), View.OnClickListener {
|
|||
rxDialogShapeLoading.cancel()
|
||||
RxToast.error("注册失败:${httpStatus.msg}")
|
||||
}
|
||||
HttpReqType.BaseREGISTER->{
|
||||
rxDialogShapeLoading.cancel()
|
||||
RxToast.error("注册失败:${httpStatus.msg}")
|
||||
}
|
||||
else->{
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ import com.cncat.vpn.common.log.Log
|
|||
import com.tencent.mmkv.MMKV
|
||||
|
||||
import com.yingmao.clash.R
|
||||
import com.yingmao.clash.act.NewMainActivity.Companion.subUrl
|
||||
import com.yingmao.clash.act.UIMainActivity
|
||||
import com.yingmao.clash.conf.BZYConstants
|
||||
import com.yingmao.clash.entity.DomainItemBean
|
||||
|
|
@ -125,9 +126,9 @@ open class DialogDoMainChoose : RxDialog {
|
|||
(baseQuickAdapter.getItem(position) as DomainItemBean).let { bean ->
|
||||
if (!TextUtils.isEmpty(bean.address)) {
|
||||
MMKV.defaultMMKV().encode(BZYConstants.MMKV_KEY_CURRENT_HOST, bean.address)
|
||||
if (!TextUtils.isEmpty(UIMainActivity.subUrl)) {
|
||||
var beanUrl=changeSubUrl(UIMainActivity.subUrl!!, bean.address)
|
||||
UIMainActivity.subUrl=beanUrl
|
||||
if (!TextUtils.isEmpty(subUrl)) {
|
||||
var beanUrl=changeSubUrl(subUrl!!, bean.address)
|
||||
subUrl=beanUrl
|
||||
MMKV.defaultMMKV().encode(
|
||||
BZYConstants.PROFILE_SUB_URL,
|
||||
beanUrl
|
||||
|
|
|
|||
Loading…
Reference in New Issue