feat: 알림톡 MILEAGE_CLAIM_V3 템플릿 대응 + 구매품목 요약
- nhn_alimtalk.py: build_item_summary() 추가 ("타이레놀 외 3건" 형식)
- send_mileage_claim_alimtalk()에 items 파라미터 추가, V3 우선 시도
- app.py: kiosk_current_session 클리어 전 items 캡처 버그 수정
- NHN API에 MILEAGE_CLAIM_V3 템플릿 등록 (발송 근거 문구 포함)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2045,8 +2045,9 @@ def api_kiosk_claim():
|
||||
if not claim_success:
|
||||
return jsonify({'success': False, 'message': claim_msg}), 500
|
||||
|
||||
# 키오스크 세션 클리어
|
||||
# 키오스크 세션에서 품목 정보 캡처 후 클리어
|
||||
claimed_points = token_info['claimable_points']
|
||||
sale_items = kiosk_current_session.get('items', [])
|
||||
kiosk_current_session = None
|
||||
|
||||
# 알림톡 발송 (fire-and-forget)
|
||||
@@ -2058,7 +2059,7 @@ def api_kiosk_claim():
|
||||
user_row = cursor.fetchone()
|
||||
user_name = user_row['nickname'] if user_row else '고객'
|
||||
|
||||
send_mileage_claim_alimtalk(phone, user_name, claimed_points, new_balance)
|
||||
send_mileage_claim_alimtalk(phone, user_name, claimed_points, new_balance, items=sale_items)
|
||||
except Exception as alimtalk_err:
|
||||
logging.warning(f"알림톡 발송 실패 (적립은 완료): {alimtalk_err}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user