コード例 #1
0
 /// <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 (EmployeeTable.hasPhoneOrMail(PhoneOrMail, isPhone))
     {
         return(isPhone ? "该号码已被注册" : "该邮箱已被注册");
     }
     else
     {
         EmployeeTable.insertTable(PhoneOrMail, pwd, isPhone);
         return("注册成功");
     }
 }