|
|
@@ -66,6 +66,11 @@ public class RegisterView : MonoBehaviour
|
|
|
registerInPWD2.SetActive(!isNext);
|
|
|
registerInEmail.SetActive(!isNext);
|
|
|
registerInPhone.SetActive(!isNext && CommonConfig.serverIndex == 0);
|
|
|
+ if (CommonConfig.banBindRelateAccount)
|
|
|
+ {
|
|
|
+ registerInEmail.SetActive(false);
|
|
|
+ registerInPhone.SetActive(false);
|
|
|
+ }
|
|
|
registerInCaptcha.SetActive(!isNext);
|
|
|
|
|
|
btnNext.SetActive(!isNext);
|
|
|
@@ -149,10 +154,13 @@ public class RegisterView : MonoBehaviour
|
|
|
PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("两次输入的密码不一致"));
|
|
|
return;
|
|
|
}
|
|
|
- if (string.IsNullOrEmpty(_bindingEmail) && string.IsNullOrEmpty(_bindingPhone)) {
|
|
|
- if (CommonConfig.serverIndex == 0) PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("至少需要绑定邮箱号或者手机号"));
|
|
|
- else PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("尚未绑定邮箱号"));
|
|
|
- return;
|
|
|
+ if (!CommonConfig.banBindRelateAccount)
|
|
|
+ {
|
|
|
+ if (string.IsNullOrEmpty(_bindingEmail) && string.IsNullOrEmpty(_bindingPhone)) {
|
|
|
+ if (CommonConfig.serverIndex == 0) PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("至少需要绑定邮箱号或者手机号"));
|
|
|
+ else PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("尚未绑定邮箱号"));
|
|
|
+ return;
|
|
|
+ }
|
|
|
}
|
|
|
InputField captcha = GetInputField(registerInCaptcha);
|
|
|
if (!captcha.text.Equals(captcha_Register.ToString())) {
|
|
|
@@ -169,6 +177,19 @@ public class RegisterView : MonoBehaviour
|
|
|
}
|
|
|
usrRecord = user.text;
|
|
|
pwdRecord = pwd1.text;
|
|
|
+ if (CommonConfig.banBindRelateAccount)
|
|
|
+ {
|
|
|
+ StartCoroutine(LoginController.Instance.Register(
|
|
|
+ usrRecord, pwdRecord, (res) => {
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey(res.msg));
|
|
|
+ if (res.code == 0) {
|
|
|
+ InitPage(true); //前往完善用户信息
|
|
|
+ LoginView.ins.FillLoginInput(usrRecord, pwdRecord);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ));
|
|
|
+ return;
|
|
|
+ }
|
|
|
StartCoroutine(LoginController.Instance.Register2(
|
|
|
usrRecord, pwdRecord, _bindingEmail, _bindingPhone, (res) => {
|
|
|
PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey(res.msg));
|