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:
25
backend/test_del3.py
Normal file
25
backend/test_del3.py
Normal file
@@ -0,0 +1,25 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
from sooin_api import SooinSession
|
||||
import re
|
||||
|
||||
session = SooinSession()
|
||||
session.login()
|
||||
|
||||
resp = session.session.get('http://sooinpharm.co.kr/Service/Order/Bag.asp?currVenCd=50911')
|
||||
html = resp.text
|
||||
|
||||
# 모든 <a> 태그의 href와 onclick 찾기
|
||||
links = re.findall(r'<a[^>]*(href|onclick)=["\']([^"\']+)["\'][^>]*>', html)
|
||||
for attr, val in links:
|
||||
if 'del' in val.lower() or 'cancel' in val.lower():
|
||||
print(f'{attr}: {val[:100]}')
|
||||
|
||||
print('\n--- form actions ---')
|
||||
forms = re.findall(r'<form[^>]*action=["\']([^"\']+)["\']', html)
|
||||
for f in forms:
|
||||
print(f'form action: {f}')
|
||||
|
||||
print('\n--- hidden inputs ---')
|
||||
hiddens = re.findall(r'<input[^>]*type=["\']hidden["\'][^>]*name=["\']([^"\']+)["\'][^>]*value=["\']([^"\']*)["\']', html)
|
||||
for name, val in hiddens[:10]:
|
||||
print(f'{name}: {val}')
|
||||
Reference in New Issue
Block a user