From 877ccb737bece65acbe87609209028864d86c576 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E5=BC=A6?= <63226198+yuxian158@users.noreply.github.com> Date: Thu, 22 Jul 2021 18:21:51 +0800 Subject: [PATCH] Update hlx.py --- hlx.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hlx.py b/hlx.py index e412245..516663b 100644 --- a/hlx.py +++ b/hlx.py @@ -63,6 +63,7 @@ def category(key): res = category_res[i] titles.append(res['title']) categoryIDs.append(res['categoryID']) + #print(res) url = f'http://floor.huluxia.com/user/signin/ANDROID/4.0' all_experienceVal = 0 for i in range(0, len(categoryIDs)): @@ -89,7 +90,7 @@ def category(key): def hlx(user, passwd): nick, key, s_key = login(user, passwd) check(key) - return "用户名:" + nick + '\n' + category(key) + return "用户名:" + nick + category(key) def start(): @@ -99,7 +100,8 @@ def start(): print('已经在环境中找到用户名和密码,开始执行程序') res = hlx(os.environ['hlx_username'], os.environ['hlx_password']) result = 'notify ' + scriptName + ' ' + res - os.system(result) + print(result) + else: print('未找到用户名和密码停止执行')