menu 개발 중. 언어 변경 시 반영 않됨

This commit is contained in:
logonkhi
2025-06-11 19:24:08 +09:00
parent cd8c5e177b
commit 2614470f13
92 changed files with 1199947 additions and 188 deletions

View File

@@ -233,15 +233,16 @@ namespace UVC.Data
{
try
{
string? responseData = info.ResponseMask.Apply(result);
// responseData가 null인 경우는 올바른 응답이 아니므로 처리하지 않음
if (responseData == null)
HttpResponseResult responseResult = info.ResponseMask.Apply(result);
// 응답 마스크 적용 결과가 성공이 아니면 실패 핸들러 호출 후 반환
if (!responseResult.IsSuccess)
{
throw new Exception($"유효하지 않은 response data. {result}");
info.FailHandler?.Invoke(responseResult.Message!);
return;
}
else
{
result = responseData.Trim();
result = responseResult.Data!.Trim();
}
@@ -299,11 +300,11 @@ namespace UVC.Data
// 갱신 된 데이터가 있는 경우 핸들러 호출
if (info.UpdatedDataOnly)
{
if (dataObject != null && dataObject.UpdatedCount > 0) info.Handler?.Invoke(dataObject);
if (dataObject != null && dataObject.UpdatedCount > 0) info.SuccessHandler?.Invoke(dataObject);
}
else
{
info.Handler?.Invoke(dataObject);
info.SuccessHandler?.Invoke(dataObject);
}
return;
}