Skip to content

Commit d3b3858

Browse files
committed
fix: QR 코드 안내 메시지의 케이스를 좀 더 자세하게 수정
1 parent d30c234 commit d3b3858

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/shop/order/views/scancode.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ def _render_user(token: str) -> response.Response:
3737
# 환불된 주문도 응답에 포함(현장 스태프의 이력 확인용). 단 모두 refunded 면 게이트.
3838
orders = list(Order.objects.filter_purchased_by(user).filter_in_last_six_months())
3939
if not any(o.current_status != PaymentHistoryStatus.refunded for o in orders):
40-
raise _ScanCodeError(msg="최근 6개월 이내에 결제한 주문이 없습니다.", code=status.HTTP_403_FORBIDDEN)
40+
raise _ScanCodeError(
41+
msg="최근 6개월 이내에 결제된 유효한 주문이 없습니다 (환불 완료 또는 주문 없음).",
42+
code=status.HTTP_403_FORBIDDEN,
43+
)
4144
return response.Response(
4245
data={
4346
"user": UserScanCodeSerializer(instance=user).data,

0 commit comments

Comments
 (0)