mirror of
https://github.com/3288588344/toulu.git
synced 2025-12-16 23:11:00 +08:00
Add files via upload
This commit is contained in:
29
万家乐.py
29
万家乐.py
@@ -4,6 +4,8 @@
|
|||||||
#抓包wakecloud.chinamacro.com域名中的cookie中钱sessionid
|
#抓包wakecloud.chinamacro.com域名中的cookie中钱sessionid
|
||||||
#多账号换行分割,一行一号
|
#多账号换行分割,一行一号
|
||||||
#账号环境变量名WJL
|
#账号环境变量名WJL
|
||||||
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
import time
|
import time
|
||||||
import os
|
import os
|
||||||
@@ -30,22 +32,37 @@ draw_url = "https://wakecloud.chinamacro.com/mtool/app/luckywheel/draw"
|
|||||||
# 抽奖请求体
|
# 抽奖请求体
|
||||||
draw_data = {"activityNo": 2025041400000001}
|
draw_data = {"activityNo": 2025041400000001}
|
||||||
|
|
||||||
|
# 获取公告信息
|
||||||
def get_proclamation():
|
def get_proclamation():
|
||||||
"""获取公告信息"""
|
primary_url = "https://github.com/3288588344/toulu/raw/refs/heads/main/tl.txt"
|
||||||
external_url = "https://github.com/3288588344/toulu/raw/refs/heads/main/tl.txt"
|
backup_url = "https://tfapi.cn/TL/tl.json"
|
||||||
try:
|
try:
|
||||||
response = requests.get(external_url, timeout=10)
|
response = requests.get(primary_url, timeout=10)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
print("\n" + "=" * 50)
|
print("\n" + "=" * 50)
|
||||||
print("📢 公告信息")
|
print("📢 公告信息")
|
||||||
print("=" * 50)
|
print("=" * 35)
|
||||||
print(response.text)
|
print(response.text)
|
||||||
print("=" * 50 + "\n")
|
print("=" * 35 + "\n")
|
||||||
|
print("公告获取成功,开始执行任务...\n")
|
||||||
|
return
|
||||||
|
except requests.exceptions.RequestException as e:
|
||||||
|
print(f"获取公告时发生错误: {e}, 尝试备用链接...")
|
||||||
|
|
||||||
|
try:
|
||||||
|
response = requests.get(backup_url, timeout=10)
|
||||||
|
if response.status_code == 200:
|
||||||
|
print("\n" + "=" * 50)
|
||||||
|
print("📢 公告信息")
|
||||||
|
print("=" * 35)
|
||||||
|
print(response.text)
|
||||||
|
print("=" * 35 + "\n")
|
||||||
print("公告获取成功,开始执行任务...\n")
|
print("公告获取成功,开始执行任务...\n")
|
||||||
else:
|
else:
|
||||||
print(f"⚠️ 获取公告失败,状态码: {response.status_code}")
|
print(f"⚠️ 获取公告失败,状态码: {response.status_code}")
|
||||||
except requests.exceptions.RequestException as e:
|
except requests.exceptions.RequestException as e:
|
||||||
print(f"⚠️ 获取公告时发生错误: {e}")
|
print(f"⚠️ 获取公告时发生错误: {e}, 可能是网络问题或链接无效。")
|
||||||
|
|
||||||
|
|
||||||
def sign_in(session_id):
|
def sign_in(session_id):
|
||||||
"""签到功能"""
|
"""签到功能"""
|
||||||
|
|||||||
27
小天鹅.py
27
小天鹅.py
@@ -38,22 +38,37 @@ def check_environment_variable():
|
|||||||
|
|
||||||
return accounts
|
return accounts
|
||||||
|
|
||||||
|
# 获取公告信息
|
||||||
def get_proclamation():
|
def get_proclamation():
|
||||||
"""获取公告信息"""
|
primary_url = "https://github.com/3288588344/toulu/raw/refs/heads/main/tl.txt"
|
||||||
external_url = "https://github.com/3288588344/toulu/raw/refs/heads/main/tl.txt"
|
backup_url = "https://tfapi.cn/TL/tl.json"
|
||||||
try:
|
try:
|
||||||
response = requests.get(external_url, timeout=10)
|
response = requests.get(primary_url, timeout=10)
|
||||||
if response.status_code == 200:
|
if response.status_code == 200:
|
||||||
print("\n" + "=" * 50)
|
print("\n" + "=" * 50)
|
||||||
print("📢 公告信息")
|
print("📢 公告信息")
|
||||||
print("=" * 50)
|
print("=" * 35)
|
||||||
print(response.text)
|
print(response.text)
|
||||||
print("=" * 50 + "\n")
|
print("=" * 35 + "\n")
|
||||||
|
print("公告获取成功,开始执行任务...\n")
|
||||||
|
return
|
||||||
|
except requests.exceptions.RequestException as e:
|
||||||
|
print(f"获取公告时发生错误: {e}, 尝试备用链接...")
|
||||||
|
|
||||||
|
try:
|
||||||
|
response = requests.get(backup_url, timeout=10)
|
||||||
|
if response.status_code == 200:
|
||||||
|
print("\n" + "=" * 50)
|
||||||
|
print("📢 公告信息")
|
||||||
|
print("=" * 35)
|
||||||
|
print(response.text)
|
||||||
|
print("=" * 35 + "\n")
|
||||||
print("公告获取成功,开始执行任务...\n")
|
print("公告获取成功,开始执行任务...\n")
|
||||||
else:
|
else:
|
||||||
print(f"⚠️ 获取公告失败,状态码: {response.status_code}")
|
print(f"⚠️ 获取公告失败,状态码: {response.status_code}")
|
||||||
except requests.exceptions.RequestException as e:
|
except requests.exceptions.RequestException as e:
|
||||||
print(f"⚠️ 获取公告时发生错误: {e}")
|
print(f"⚠️ 获取公告时发生错误: {e}, 可能是网络问题或链接无效。")
|
||||||
|
|
||||||
|
|
||||||
def send_sign_request(imUserId, uid):
|
def send_sign_request(imUserId, uid):
|
||||||
"""发送签到请求"""
|
"""发送签到请求"""
|
||||||
|
|||||||
Reference in New Issue
Block a user