- internal_code DB 저장 → 프론트에서 선택한 제품 그대로 주문 - 기존 장바구니 백업/복구로 사용자 장바구니 보존 - 수인약품 submit_order() 수정 (체크박스 제외 방식) - 테스트 파일 정리 및 문서 추가
22 lines
628 B
Python
22 lines
628 B
Python
# -*- coding: utf-8 -*-
|
|
import sys; sys.path.insert(0, '.'); import wholesale_path
|
|
from wholesale import SooinSession
|
|
|
|
s = SooinSession()
|
|
s.login()
|
|
|
|
cart = s.get_cart()
|
|
print(f'성공: {cart["success"]}')
|
|
print(f'품목 수: {cart["total_items"]}')
|
|
print(f'총액: {cart["total_amount"]:,}원')
|
|
print()
|
|
|
|
if cart['items']:
|
|
print('=== 장바구니 품목 ===')
|
|
for item in cart['items']:
|
|
status = '✅' if item.get('active') else '❌취소'
|
|
name = item['product_name'][:30]
|
|
print(f"{status} {name:30} x{item['quantity']} = {item['amount']:,}원")
|
|
else:
|
|
print('🛒 장바구니 비어있음')
|