From c888c0e3f70fcce9f76fd8e8ada0ba2df282a9eb Mon Sep 17 00:00:00 2001 From: Qing <919836565@qq.com> Date: Tue, 1 Oct 2024 13:10:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E9=9A=8F=E6=9C=BA=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=EF=BC=8C=E4=BC=98=E5=8C=96=E6=98=BE=E7=A4=BA=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=A4=A7=E9=87=8F=E6=96=87=E4=BB=B6=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=A4=B9=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/android.py b/android.py index 0b95864..257ed77 100644 --- a/android.py +++ b/android.py @@ -884,15 +884,14 @@ class Pan123: with open("123pan.txt", "r", encoding="utf-8") as f: text = f.read() text = json.loads(text) - user_name = text["userName"] - pass_word = text["passWord"] - authorization = text["authorization"] - - # 读取设备信息 deviceType = text["deviceType"] osVersion = text["osVersion"] self.devicetype = deviceType self.osversion = osVersion + # 读取设备信息 + user_name = text["userName"] + pass_word = text["passWord"] + authorization = text["authorization"] except: # FileNotFoundError or json.decoder.JSONDecodeError: print("获取配置失败,重新输入")