Sfoglia il codice sorgente

검색 결과 productPrice 파싱 오류 수정 (int -> decimal, 문자열/대형 값 허용)

쿠팡 검색 API가 Int32 범위를 넘는 productPrice를 반환하면
System.Text.Json 역직렬화가 실패해 검색 페이지가 500 오류를 냈다.
Product.cs와 동일하게 decimal + AllowReadingFromString 처리.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
KIM-JINO5 2 giorni fa
parent
commit
139fdae514
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      Models/Response/Search.cs

+ 2 - 1
Models/Response/Search.cs

@@ -47,7 +47,8 @@ namespace goods.Models.Coupang.Search
         public string ProductName { get; set; } = null!;
 
         [JsonPropertyName("productPrice")]
-        public int ProductPrice { get; set; }
+        [JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
+        public decimal ProductPrice { get; set; }
 
         [JsonPropertyName("productUrl")]
         public string ProductUrl { get; set; } = null!;