public void GetRealName(InputField input)
    {
        // 优先使用热更新的代码
        if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("RealNameScript_hotfix", "GetRealName"))
        {
            ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.RealNameScript_hotfix", "GetRealName", null, input);
            return;
        }

        _isCorrectRealName = VerifyRuleUtil.CheckRealName(input.text);
        bool isSensitiveWord = SensitiveWordUtil.IsSensitiveWord(input.text);

        if (isSensitiveWord)
        {
            _isCorrectRealName = false;
            ToastScript.createToast("您的名字有敏感词");
        }

        if (_isCorrectRealName)
        {
            _realName = input.text;
        }
        else
        {
            ToastScript.createToast("请输入正确的姓名");
        }
    }
Esempio n. 2
0
    public void GetVerificationCode(InputField input)
    {
        // 优先使用热更新的代码
        if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("BindPhoneScript_hotfix", "GetVerificationCode"))
        {
            ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.BindPhoneScript_hotfix", "GetVerificationCode", null, input);
            return;
        }

        _isCorrectCode = VerifyRuleUtil.CheckVerificationCode(input.text);
        LogUtil.Log(_isCorrectCode);
        if (_isCorrectCode)
        {
            _verificationCode = input.text;
        }
    }
    public void GetIdentification(InputField input)
    {
        // 优先使用热更新的代码
        if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("RealNameScript_hotfix", "GetIdentification"))
        {
            ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.RealNameScript_hotfix", "GetIdentification", null, input);
            return;
        }

        _isCorrectIdentification = VerifyRuleUtil.CheckIDCard(input.text);
        if (_isCorrectIdentification)
        {
            _identification = input.text;
        }
        else
        {
            ToastScript.createToast("请输入正确的身份证");
        }
    }
Esempio n. 4
0
    public void onClickQueRen()
    {
        // 优先使用热更新的代码
        if (ILRuntimeUtil.getInstance().checkDllClassHasFunc("UseHuaFeiPanelScript_hotfix", "onClickQueRen"))
        {
            ILRuntimeUtil.getInstance().getAppDomain().Invoke("HotFix_Project.UseHuaFeiPanelScript_hotfix", "onClickQueRen", null, null);
            return;
        }

        if (!VerifyRuleUtil.CheckPhone(m_inputField_phone.text))
        {
            ToastScript.createToast("请输入正确的手机号");

            return;
        }

        NetLoading.getInstance().Show();

        LogicEnginerScript.Instance.GetComponent <UseHuaFeiRequest>().SetData(m_propInfo.m_id, m_useNum, m_inputField_phone.text);
        LogicEnginerScript.Instance.GetComponent <UseHuaFeiRequest>().CallBack = onReceive_UseHuaFei;
        LogicEnginerScript.Instance.GetComponent <UseHuaFeiRequest>().OnRequest();
    }