From 68bf43ea2f331d45bef71ad444f114c3a6da05f2 Mon Sep 17 00:00:00 2001 From: king Date: Tue, 13 Oct 2026 06:08:22 +0900 Subject: [PATCH] fix(performance): raw-data check shows the period it actually queried MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The settings raw-data check queries at most 31 days; a longer range was silently cut to the first 31 days, so a "1 year" check looked successful. Now the result starts with the queried period and, when cut, a warning that points to [과거 매출 가져오기] for long ranges. Co-Authored-By: Claude Opus 5.5 --- app/modules/performance/templates/performance/index.html | 2 +- .../performance/templates/performance/settings.html | 2 +- app/static/performance.js | 8 +++++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/app/modules/performance/templates/performance/index.html b/app/modules/performance/templates/performance/index.html index 235f8e0..41b9d2b 100644 --- a/app/modules/performance/templates/performance/index.html +++ b/app/modules/performance/templates/performance/index.html @@ -255,4 +255,4 @@ } | tojson }} {% endblock %} -{% block scripts %}{% endblock %} +{% block scripts %}{% endblock %} diff --git a/app/modules/performance/templates/performance/settings.html b/app/modules/performance/templates/performance/settings.html index 7a35887..9735a75 100644 --- a/app/modules/performance/templates/performance/settings.html +++ b/app/modules/performance/templates/performance/settings.html @@ -204,4 +204,4 @@ {% endblock %} -{% block scripts %}{% endblock %} +{% block scripts %}{% endblock %} diff --git a/app/static/performance.js b/app/static/performance.js index 7b70a73..f8b8986 100644 --- a/app/static/performance.js +++ b/app/static/performance.js @@ -1146,7 +1146,13 @@ const r = await api("GET", "/performance/api/marketplaces/" + code + "/reconcile?date=" + encodeURIComponent(day) + "&to=" + encodeURIComponent(to)); if (!r.ok) { out.innerHTML = '

' + esc((r.label ? r.label + " — " : "") + r.message) + "

"; return; } - const summary = '' + + // 원본 확인은 최대 31일 — 더 긴 기간을 넣으면 서버가 앞 31일만 본다. 실제 조회 기간을 꼭 보여 준다. + const shown = r.date ? (r.date === r.to ? r.date : r.date + " ~ " + r.to) : ""; + const cut = r.to && r.to < to; + const range = shown ? '

조회 기간 ' + esc(shown) + "" + + (cut ? " — 원본 데이터 확인은 한 번에 31일까지라 " + esc(r.to) + " 뒤(~" + esc(to) + ")는 조회하지 않았습니다. " + + "1년치 매출은 위 [과거 매출 가져오기]로 받으세요(31일씩 나눠 불러 저장)." : "") + "

" : ""; + const summary = range + '
조회
' + '' + r.probes.map(function (p) { return '
조회주소결과건수
' + esc(p.label) + '' + esc(p.path) + "" +