Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netfunnel -> already completed error #278

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

pisik9
Copy link

@pisik9 pisik9 commented Dec 16, 2024

  1. netfunnel -> already completed error: _set_complete() method를 등록 성공 이후 단기간 재실행하게 될 경우NetFunnel.gRtype=5004;NetFunnel.gControl.result='5004:502:msg="Already Completed"'; NetFunnel.gControl._showResult(); 발생 -> ALREADY_COMPLETED 추가하여 error skip
  2. reserve 시 passenger에 adult 없이 넣게 되면 error 발생
    -> get_passenger_dict 에서 passenger code가 아닌 순서대로 1~5로 생성되게 수정

pass "already completed" error
(it occurs trying _set_complete method multiple times in short durartion)
change description and default value of "psgTpCd1", "psgInfoPerPrnb1"
if netfunnel_resp.get("status") != self.WAIT_STATUS_PASS:
if netfunnel_resp.get("status") not in [
self.WAIT_STATUS_PASS,
self.ALREADY_COMPLETED,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

data[f"psgTpCd{code}"] = passenger.type_code
data[f"psgInfoPerPrnb{code}"] = str(passenger.count)
for idx, passenger in enumerate(passengers):
psgidx = idx + 1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

감사합니다. 이 동작이 맞는지 한 번 다시 확인해볼게요.

smk/dir/loc/rq/etc SeatAttCd1, 2는 간편예매에서 변경되는 값으로, 일반 예매에서는 고정값

reserveType은 11로 확인됨
Copy link
Owner

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

감사합니다. 잘 작성해주신 것 같습니다.

Comment on lines +455 to +456
"psgTpCd1": "0", # 승객종류1 passenger.code (psgTpCd1~5, 1~5)
"psgInfoPerPrnb1": "0", # 승객종류1 인원수 (psgInfoPerPrnb1~5)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

passenger 객체에서 만들어줘서 넘어오니 이 부분은 그냥 없애도 될 것 같습니다 (totPrnb, psgGridcnt, psgTpCd1, psgInfoPerPrnb1, 등등)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants