protected override void IsValid(JObject data) { //判断邮箱和密码格式是否正确 if (!(JugeValid.EmailIsValid(data[IVN.Email].ToString()) && JugeValid.PasswordIsValid(data[IVN.Password].ToString()))) { code = 1001; return; } }
protected override void IsValid(JObject data) { //判断密码格式是否正确 if (!JugeValid.PasswordIsValid(data[IVN.Password].ToString())) { code = 1001; return; } //判断重复密码是否正确 if (!data[IVN.RePassword].ToString().Equals(data[IVN.Password].ToString())) { code = 1002; return; } }