代码拉取完成,页面将自动刷新
同步操作将从 青铜少年/自用青龙脚本库 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# coding=utf-8
"""
每日8:30
cron: 0 30 7 * * ?
new Env("飞速云机场")
"""
import requests
import notify
import utils.tool as TOOL
import utils.getCookie as getCookie
global msg
msg = """
名称|状态
:--:|:--:
"""
def main():
users = getCookie.GetQlEnvs().getCookies('FSY_COOKIE')
print("🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉\n")
print("获取到: " + str(len(users)) + " 个用户")
print("-------------------------------------------")
for user in users:
signIn(user)
# 签到
def signIn(user):
global msg
url = 'https://feisu261.xyz/user/checkin'
data = " "
headers = {
"Host": "feisu261.xyz",
"accept": "application/json, text/javascript, */*; q=0.01",
"origin": "https://feisu261.xyz",
"x-requested-with": "XMLHttpRequest",
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/79.0.3945.147 Safari/534.24 XiaoMi/MiuiBrowser/14.3.21",
"sec-fetch-site": "same-origin",
"sec-fetch-mode": "cors",
"referer": "https://feisu261.xyz/user",
"accept-language": "zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7",
"cookie": user['cookie']
}
res = requests.post(url=url, data=data, headers=headers)
json = res.json()
print(user['name'] + " ---> " + json['msg'] + "\n")
msg += user['name'] + "|" + json['msg'] + "\n\n"
print("-------------------------------------------\n")
main()
print("🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉")
notify.send("飞速云机场", msg)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。