|
|
@@ -132,7 +132,8 @@ public class RegisterView : MonoBehaviour
|
|
|
JCUnityLib.Throttler throttlerRegisterSave = new JCUnityLib.Throttler(2000);
|
|
|
public void RegisterSave() {
|
|
|
InputField nickname = GetInputField(registerInNickname);
|
|
|
- if (nickname.text.Trim().Length == 0) {
|
|
|
+ string text_nickname = nickname.text.Trim();
|
|
|
+ if (text_nickname.Length == 0) {
|
|
|
PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("请输入游戏昵称"));
|
|
|
return;
|
|
|
}
|
|
|
@@ -145,13 +146,18 @@ public class RegisterView : MonoBehaviour
|
|
|
}
|
|
|
}
|
|
|
InputField birthday = GetInputField(registerInBirthday);
|
|
|
- if (birthday.text.Length != 10) {
|
|
|
- PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("未填写出生日期"));
|
|
|
+ string text_birthday = birthday.text;
|
|
|
+ if (text_birthday.Length != 10) {
|
|
|
+ text_birthday = "2000-01-01";
|
|
|
+ // PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("未填写出生日期"));
|
|
|
return;
|
|
|
}
|
|
|
InputField location = GetInputField(registerInLocation);
|
|
|
if (location.text.Length == 0) {
|
|
|
- PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("未填写所在地区"));
|
|
|
+ countryCode = "";
|
|
|
+ stateCode = "";
|
|
|
+ cityCode = "";
|
|
|
+ // PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey("未填写所在地区"));
|
|
|
return;
|
|
|
}
|
|
|
if (!AgreenmentOption.ins.IsAgreementChecked()) {
|
|
|
@@ -163,7 +169,7 @@ public class RegisterView : MonoBehaviour
|
|
|
return;
|
|
|
}
|
|
|
StartCoroutine(LoginController.Instance.CompleteUserInfo(
|
|
|
- usrRecord, pwdRecord, nickname.text, gender, birthday.text,
|
|
|
+ usrRecord, pwdRecord, text_nickname, gender, text_birthday,
|
|
|
countryCode, stateCode, cityCode
|
|
|
,(res) => {
|
|
|
PopupMgr.ins.ShowTip(TextAutoLanguage2.GetTextByCNKey(res.msg));
|