From 9aeeed3f322938a286e59cd90c93baa6edeabb0f Mon Sep 17 00:00:00 2001 From: mikumifa <1055069518@qq.com> Date: Mon, 26 Aug 2024 23:24:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4bili=E6=AE=8B=E7=95=99?= =?UTF-8?q?=E9=83=A8=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- main.py | 7 ++++--- tab/problems.py | 11 ++++------- util/order_qrcode.py | 13 ------------- 4 files changed, 9 insertions(+), 24 deletions(-) delete mode 100644 util/order_qrcode.py 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