We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 674cc07 commit 73be737Copy full SHA for 73be737
1 file changed
tab/settings.py
@@ -389,9 +389,12 @@ def on_submit_all(
389
390
ticket_cur: dict[str, Any] = ticket_value[ticket_info]
391
people_cur = [buyer_value[item] for item in people_indices]
392
- ticket_id = extract_id_from_url(ticket_id)
393
- if ticket_id is None:
394
- raise gr.Error("未能从当前链接中解析出票务 ID,请重新获取票务信息。")
+ if isinstance(ticket_id, str) and ticket_id.isdigit():
+ pass
+ else:
395
+ ticket_id = extract_id_from_url(ticket_id)
396
+ if ticket_id is None:
397
+ raise gr.Error("未能从当前链接中解析出票务 ID,请重新获取票务信息。")
398
399
ConfigDB.insert("people_buyer_name", people_buyer_name)
400
ConfigDB.insert("people_buyer_phone", people_buyer_phone)
0 commit comments