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