fix ym网页注册
This commit is contained in:
parent
fe601e0364
commit
0cf65ab86a
|
|
@ -502,7 +502,15 @@ class LoginActivity : BaseActivity(), View.OnClickListener {
|
|||
}
|
||||
|
||||
R.id.tv_register -> {
|
||||
var isWebRegister=false
|
||||
//ym暂时用网页注册
|
||||
if (BuildConfig.is_ym){
|
||||
isWebRegister=true
|
||||
}
|
||||
if (!BuildConfig.is_free && BuildConfig.productId.isNotEmpty()) {
|
||||
isWebRegister=true
|
||||
}
|
||||
if (!isWebRegister) {
|
||||
val intent = Intent(applicationContext, SplashActivity::class.java)
|
||||
startActivity(intent)
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -283,7 +283,7 @@ class SplashActivity : BaseActivity() {
|
|||
}
|
||||
|
||||
private var webView: WebView? = null
|
||||
private lateinit var pb_web: ProgressBar
|
||||
private var pb_web: ProgressBar?=null
|
||||
var dialogAgreementPrivacyChoose: DialogAgreementPrivacyChoose? = null
|
||||
private fun initAgreementPrivacy() {
|
||||
if (BuildConfig.is_tz && BuildConfig.productId == "182269") {
|
||||
|
|
@ -407,7 +407,7 @@ class SplashActivity : BaseActivity() {
|
|||
|
||||
launch {
|
||||
webView?.setOnTouchListener { _, _ -> true }
|
||||
pb_web.visibility = View.VISIBLE
|
||||
pb_web?.visibility = View.VISIBLE
|
||||
}
|
||||
doRegisterByEncryption()
|
||||
return true
|
||||
|
|
@ -756,7 +756,7 @@ class SplashActivity : BaseActivity() {
|
|||
finish()
|
||||
// graphicVerificationDialog()
|
||||
} else if (code == "403") {
|
||||
pb_web.visibility = View.INVISIBLE
|
||||
pb_web?.visibility = View.INVISIBLE
|
||||
message?.let {
|
||||
RxToast.error(it)
|
||||
}
|
||||
|
|
@ -901,7 +901,7 @@ class SplashActivity : BaseActivity() {
|
|||
when (httpStatus.reqType) {
|
||||
HttpReqType.REGISTER -> {
|
||||
rlPb.visibility = View.GONE
|
||||
pb_web.visibility = View.INVISIBLE
|
||||
pb_web?.visibility = View.INVISIBLE
|
||||
com.cncat.vpn.common.log.Log.d("httpFailure HttpReqType.REGISTER")
|
||||
try {
|
||||
RxToast.error("检测到网络异常,请尝试切换其他地址.")
|
||||
|
|
|
|||
Loading…
Reference in New Issue