/// <summary> /// 判断号码或者邮箱是否被注册 /// </summary> /// <param name="PhoneOrMail">手机或邮箱</param> /// <param name="pwd">密码</param> /// <param name="isPhone">是否为手机注册</param> /// <returns>相应提示</returns> public static string insertTable(string PhoneOrMail, string pwd, bool isPhone) { if (StudentTable.hasPhoneOrMail(PhoneOrMail, isPhone)) { return(isPhone ? "该号码已被注册" : "该邮箱已被注册"); } else { StudentTable.insertTable(PhoneOrMail, pwd, isPhone); return("注册成功"); } }