diff --git a/README.md b/README.md index 6a54086..6588849 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ ## 快速安装 -Windows 下载最新的release文件 (bilibili-buy.zip) [下载链接](https://github.com/mikumifa/cppTickerBuy/releases) +Windows 下载最新的release文件 [下载链接](https://github.com/mikumifa/cppTickerBuy/releases) > **NOTE** diff --git a/main.py b/main.py index eca2784..1230523 100644 --- a/main.py +++ b/main.py @@ -4,12 +4,13 @@ from tab.go import go_tab from tab.login import login_tab +from tab.problems import problems_tab from tab.settings import setting_tab header = """ # CPP 抢票🌈 -⚠️此项目完全开源免费 ([项目地址](https://github.com/mikumifa/biliTickerBuy)),切勿进行盈利,所造成的后果与本人无关。 +⚠️此项目完全开源免费 ([项目地址](https://github.com/mikumifa/cppTickerBuy)),切勿进行盈利,所造成的后果与本人无关。 """ short_js = """ @@ -40,8 +41,8 @@ go_tab() with gr.Tab("登录管理"): login_tab() - # with gr.Tab("常见问题"): - # problems_tab() + with gr.Tab("常见问题"): + problems_tab() print("CPP账号的登录是在此控制台,请留意提示!!") print("点击下面的网址运行程序 ↓↓↓↓↓↓↓↓↓↓↓↓↓↓") diff --git a/tab/problems.py b/tab/problems.py index ef34833..a70b930 100644 --- a/tab/problems.py +++ b/tab/problems.py @@ -1,10 +1,7 @@ import gradio as gr -# def problems_tab(): -# gr.Markdown(""" -# -# 本项目使用说明书 [使用说明书](https://github.com/mikumifa/biliTickerBuy/wiki/%E6%8A%A2%E7%A5%A8%E8%AF%B4%E6%98%8E) -# -# 本项目的提问专区 [提问专区](https://github.com/mikumifa/biliTickerBuy/discussions) -# """) +def problems_tab(): + gr.Markdown(""" +本项目的提问专区 [提问专区](https://github.com/mikumifa/cppTickerBuy/discussions) +""") diff --git a/util/order_qrcode.py b/util/order_qrcode.py deleted file mode 100644 index abb2c1b..0000000 --- a/util/order_qrcode.py +++ /dev/null @@ -1,13 +0,0 @@ -import time - - -def get_qrcode_url(_request, order_id): - url = f"https://show.bilibili.com/api/ticket/order/getPayParam?order_id={order_id}" - data = _request.get(url).json() - try: - if data["errno"] == 0: - return data["data"]["code_url"] - else: - raise Exception - except Exception: - return None