From 4864a2a83b59dba817f1ae5daf627b2eab488f6a Mon Sep 17 00:00:00 2001 From: 3288588344 <127068117+3288588344@users.noreply.github.com> Date: Wed, 21 Aug 2024 17:22:02 +0800 Subject: [PATCH] =?UTF-8?q?Delete=20=E9=95=BF=E8=99=B9=E7=BE=8E=E8=8F=B1.j?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 长虹美菱.js | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 长虹美菱.js diff --git a/长虹美菱.js b/长虹美菱.js deleted file mode 100644 index 0a961dc..0000000 --- a/长虹美菱.js +++ /dev/null @@ -1,45 +0,0 @@ -/* -变量名chmlck -抓包hongke.changhong.com域名的token -【tl库频道】:https://pd.qq.com/s/672fku8ge -*/ -import os -import requests - -response = requests.get("#小程序://长虹美菱会员服务/VgBR6WSiyJxrs4G") -response.encoding = 'utf-8' -txt = response.text -print(txt) - -accounts = os.getenv("chmlck", "").splitlines() -print("☞☞☞ 长虹美菱每日签到 ☜☜☜ -") -if not accounts: - print("未找到任何账号信息。") -else: - for account in accounts: - if not account.strip(): - continue - try: - token, note = account.split("#") - except ValueError: - print(f"格式错误: {account}") - continue - url = "https://hongke.changhong.com/gw/applet/aggr/signin" - params = {'aggrId': "608"} - headers = { - 'User-Agent': "Mozilla/5.0 (Linux; Android 10; Mobile Safari/537.36)", - 'Accept-Encoding': "gzip, deflate", - 'Content-Type': "application/json", - 'Token': token.strip() - } - try: - response = requests.post(url, params=params, headers=headers) - if response.status_code == 200: - print(f"{note.strip()}:签到成功") - elif response.status_code == 400: - print(f"{note.strip()}:请勿重复签到") - else: - print(f"{note.strip()}:响应状态码 {response.status_code} - {response.text}") - except requests.RequestException as e: - print(f"{note.strip()}:请求失败 - {e}")