|
|
@@ -90,37 +90,37 @@ public class RegisterView : MonoBehaviour
|
|
|
{
|
|
|
InputField user = GetInputField(registerInUser);
|
|
|
if (user.text.Length < 6) {
|
|
|
- PopupMgr.ins.ShowTip("用户名长度至少6位");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("用户名长度至少6位"));
|
|
|
return;
|
|
|
}
|
|
|
InputField pwd1 = GetInputField(registerInPWD1);
|
|
|
if (pwd1.text.Length < 6) {
|
|
|
- PopupMgr.ins.ShowTip("密码长度至少6位");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("密码长度至少6位"));
|
|
|
return;
|
|
|
}
|
|
|
InputField pwd2 = GetInputField(registerInPWD2);
|
|
|
if (pwd1.text != pwd2.text) {
|
|
|
- PopupMgr.ins.ShowTip("两次输入的密码不一致");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("两次输入的密码不一致"));
|
|
|
return;
|
|
|
}
|
|
|
InputField captcha = GetInputField(registerInCaptcha);
|
|
|
if (!captcha.text.Equals(captcha_Register.ToString())) {
|
|
|
- PopupMgr.ins.ShowTip("验证码错误");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("验证码错误"));
|
|
|
return;
|
|
|
}
|
|
|
if (!AgreenmentOption.ins.IsAgreementChecked()) {
|
|
|
- PopupMgr.ins.ShowTip("请阅读并同意App协议");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("请阅读并同意App协议"));
|
|
|
return;
|
|
|
}
|
|
|
if (throttlerRegisterNext.CanPass() == false) {
|
|
|
- PopupMgr.ins.ShowTip("操作过于频繁");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("操作过于频繁"));
|
|
|
return;
|
|
|
}
|
|
|
usrRecord = user.text;
|
|
|
pwdRecord = pwd1.text;
|
|
|
StartCoroutine(LoginController.ins.Register(
|
|
|
usrRecord, pwdRecord, (res) => {
|
|
|
- PopupMgr.ins.ShowTip(res.msg);
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey(res.msg));
|
|
|
if (res.code == 0) {
|
|
|
InitPage(true); //前往完善用户信息
|
|
|
LoginView.ins.FillLoginInput(usrRecord, pwdRecord);
|
|
|
@@ -133,7 +133,7 @@ public class RegisterView : MonoBehaviour
|
|
|
public void RegisterSave() {
|
|
|
InputField nickname = GetInputField(registerInNickname);
|
|
|
if (nickname.text.Trim().Length == 0) {
|
|
|
- PopupMgr.ins.ShowTip("请输入游戏昵称");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("请输入游戏昵称"));
|
|
|
return;
|
|
|
}
|
|
|
int gender = 0;
|
|
|
@@ -146,27 +146,27 @@ public class RegisterView : MonoBehaviour
|
|
|
}
|
|
|
InputField birthday = GetInputField(registerInBirthday);
|
|
|
if (birthday.text.Length != 10) {
|
|
|
- PopupMgr.ins.ShowTip("未填写出生日期");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("未填写出生日期"));
|
|
|
return;
|
|
|
}
|
|
|
InputField location = GetInputField(registerInLocation);
|
|
|
if (location.text.Length == 0) {
|
|
|
- PopupMgr.ins.ShowTip("未填写所在地区");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("未填写所在地区"));
|
|
|
return;
|
|
|
}
|
|
|
if (!AgreenmentOption.ins.IsAgreementChecked()) {
|
|
|
- PopupMgr.ins.ShowTip("请阅读并同意App协议");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("请阅读并同意App协议"));
|
|
|
return;
|
|
|
}
|
|
|
if (throttlerRegisterSave.CanPass() == false) {
|
|
|
- PopupMgr.ins.ShowTip("操作过于频繁");
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("操作过于频繁"));
|
|
|
return;
|
|
|
}
|
|
|
StartCoroutine(LoginController.ins.CompleteUserInfo(
|
|
|
usrRecord, pwdRecord, nickname.text, gender, birthday.text,
|
|
|
countryCode, stateCode, cityCode
|
|
|
,(res) => {
|
|
|
- PopupMgr.ins.ShowTip(res.msg);
|
|
|
+ PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey(res.msg));
|
|
|
if (res.code == 0) {
|
|
|
GameObject.FindObjectOfType<LoginMgr>().showLoginView();
|
|
|
}
|