feat: 도매상 API 통합 및 스키마 업데이트
- wholesale 패키지 연동 (SooinSession, GeoYoungSession) - Flask Blueprint 분리 (sooin_api.py, geoyoung_api.py) - order_context 스키마 확장 (wholesaler_id, internal_code 등) - 수인약품 개별 취소 기능 (cancel_item, restore_item) - 문서 추가: WHOLESALE_API_INTEGRATION.md - 테스트 스크립트들
This commit is contained in:
18
backend/test_bagjs2.py
Normal file
18
backend/test_bagjs2.py
Normal file
@@ -0,0 +1,18 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""Bag.js 전체에서 del 찾기"""
|
||||
from sooin_api import SooinSession
|
||||
import re
|
||||
|
||||
session = SooinSession()
|
||||
session.login()
|
||||
|
||||
resp = session.session.get('http://sooinpharm.co.kr/Common/Javascript/Bag.js?v=250228')
|
||||
js = resp.text
|
||||
|
||||
print(f'JS 길이: {len(js)}')
|
||||
|
||||
# del 포함된 줄 모두
|
||||
for i, line in enumerate(js.split('\n')):
|
||||
line = line.strip()
|
||||
if 'del' in line.lower():
|
||||
print(f'{line[:120]}')
|
||||
Reference in New Issue
Block a user