void SignupLayerIdentifyText(GameObject go) { if (signupLayer.CountDown > 0) { return; } string mobile = signupLayer.inputMobile.text; string answer = signupLayer.inputAnswer.text; if (string.IsNullOrEmpty(mobile)) { UITipsDialog.ShowTips("请输入手机号"); return; } if (string.IsNullOrEmpty(signupLayer.inputAnswer.text)) { UITipsDialog.ShowTips("请输入问题答案"); return; } RequestAuthCode param = new RequestAuthCode(); param.phone = mobile; param.zuoti = answer; param.type = "register"; param.equitmentTime = SystemInfo.deviceUniqueIdentifier; LoginManager.Instance.SendAuthCode <ResponseAuthCode>(param, (responseData) => { if (responseData.status == "200") { signupLayer.CountDown = 60; signupLayer.authCode = responseData.data.code; } else { UITipsDialog.ShowTips(responseData.msg); } }); }
void ForgetLayer1IdentifyText(GameObject go) { if (forgetLayer1.CountDown > 0) { return; } if (string.IsNullOrEmpty(forgetLayer1.inputMobile.text)) { UITipsDialog.ShowTips("请输入手机号"); return; } if (string.IsNullOrEmpty(forgetLayer1.inputAnswer.text)) { UITipsDialog.ShowTips("请输入问题答案"); return; } RequestAuthCode param = new RequestAuthCode(); param.phone = forgetLayer1.inputMobile.text; param.zuoti = forgetLayer1.inputAnswer.text; param.type = "forget"; param.equitmentTime = SystemInfo.deviceUniqueIdentifier; LoginManager.Instance.SendAuthCode <ResponseAuthCode>(param, (responseData) => { if (responseData.status == "200") { forgetLayer1.CountDown = 60; forgetLayer1.authCode = responseData.data.code; } else { UITipsDialog.ShowTips(responseData.msg); } }); }