From e7d1b45de142f0696b376a7dfc5b66616e9a549d Mon Sep 17 00:00:00 2001 From: LanShui <2031845258@qq.com> Date: Tue, 21 May 2024 23:33:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=B8=B8=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- __pycache__/apps.cpython-310.pyc | Bin 6634 -> 7370 bytes __pycache__/module.cpython-310.pyc | Bin 1076 -> 1118 bytes apps.py | 140 ++++++++++++++++++----------- config_app/favorite.db | Bin 0 -> 12288 bytes config_app/login_user.json | 2 +- main.py | 7 +- module.py | 2 + 7 files changed, 95 insertions(+), 56 deletions(-) create mode 100644 config_app/favorite.db diff --git a/__pycache__/apps.cpython-310.pyc b/__pycache__/apps.cpython-310.pyc index c116246ac8419077f49d9aeb3a0cf398af749932..1c6eaaf070d026311f1bd2129c70db6355ff16ec 100644 GIT binary patch delta 1725 zcmah}TWB0r7(V~(WcEHgyE}WCY_i#;w05bsNJXfDO4@8|Xq(o}+L)zvyUm%Ty9wEJ zcG5KQj1iJjD+F5(^r;WKc)G~$aEd=gZ!eNtEuFCbEV@kM;G>VG!d5G3Lp&i7x> zf18=}%fT-WskLCxNAUUf?#ZcJ{kPN}`1IDk@f8{=YG#;5&B&BQbsAffSD_fCaWg^_ zsFP`u8f$VjO|21{GGnW*VjSfj+KX~;TTY;yrhO>)nMt%8C}(It%Kc_H$|*W9 zMzXsehzhdMazB6iV%40qv+q9~gXD62vNktWnJ$&*=MPMkuhguHZSJQR`5EaqFgAu< z34rv*gse!Az_!3+=S()cvbC#-TZZR zU}c<)5nHM%4Y%!S0#z1>b(*@T!RfNS4WH0C3R4>XCUM-XYnYsOJ09k41Q=R?TpmO| z*d##ENA1wIY=>-(dZ?HBsDE94Bj|YTa3jLJ7|%COD3Niky1*oJo+n9tdJ%((H6cRz z8c`Z(LYoG$DD{ry_-(x!v*R?BAa;WJskZKN0xVEX((sJS`l(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 81b9864..0cd3f32 100644 --- a/config_app/login_user.json +++ b/config_app/login_user.json @@ -1 +1 @@ -{"accessToken": "eb00b22d167411ef92c5e252f2c508d4", "clientToken": "ea55c2cc-1674-11ef-92c5-e252f2c508d4", "id": "a6143eb7a7883daab9a05dbe052879a1", "name": "GameDaBai"} \ No newline at end of file +{"accessToken": "7e56f116178611ef92c5e252f2c508d4", "clientToken": "7da4f2dd-1786-11ef-92c5-e252f2c508d4", "id": "a6143eb7a7883daab9a05dbe052879a1", "name": "GameDaBai"} \ No newline at end of file diff --git a/main.py b/main.py index fba304b..676595c 100644 --- a/main.py +++ b/main.py @@ -26,6 +26,12 @@ class Login_Window_app(QWidget): def run_th_app(self, data_config: dict): self.destroy() + if data_config.get("code") == 9: + error_str = data_config.get("data_config") + message_error = apps.Message_yes_no(message="在启动客户端时发生严重错误,请复制以下错误信息发送给开发者或管理员,单击确定即可复制\n\n" + error_str.get("error")) + if message_error.value() is True: + pyperclip.copy(error_str.get("error")) + return sys.exit(0) if data_config.get("code") == 2: apps.Message_ok(message="网络出问题了,请检查完网络连接再来哦主人") return sys.exit(0) @@ -254,7 +260,6 @@ class My_APP_Window(QTabWidget): self.server_ip_list = QListWidget() self.server_ip_list.setFixedSize(500, 55) self.server_ip_list.setFlow(QListView.LeftToRight) - self.server_ip_list.addItems(["name1", "name2", "name33"]) index_home_grid_box.addWidget(self.server_ip_list, 2, 0, alignment=Qt.AlignLeft | Qt.AlignBottom) self.start_game_button = QPushButton(text="启动游戏") diff --git a/module.py b/module.py index 0767ab0..d7000ce 100644 --- a/module.py +++ b/module.py @@ -12,6 +12,8 @@ import requests import json import datetime import sqlite3 +import pyperclip +import traceback from time import sleep import zipfile from shutil import rmtree