Compare commits
10 Commits
7ee6f30748
...
13ec8a7b8c
Author | SHA1 | Date | |
---|---|---|---|
13ec8a7b8c | |||
1f22b1e446 | |||
|
817c65b992 | ||
|
52ae5c836f | ||
|
ae6911a72e | ||
|
61fa13ae6a | ||
8e8179a775 | |||
14d7fcd9e3 | |||
1c9ca05d34 | |||
814d3c566c |
2
.github/workflows/AutoCheckin.yml.disabled
vendored
2
.github/workflows/AutoCheckin.yml.disabled
vendored
|
@ -30,6 +30,6 @@ jobs:
|
|||
pip install -r requirements.txt
|
||||
- name: Run script
|
||||
env:
|
||||
config: ${{ secrets.config }}
|
||||
MHYY_CONFIG: ${{ secrets.MHYY_SECRET }}
|
||||
run: |
|
||||
python3 main.py
|
||||
|
|
|
@ -6,8 +6,12 @@
|
|||
|
||||
**⚠️请不要进行宣传,谢谢!一旦发现宣传就删库跑路!使用过程中如果出现bug可能会使用您的日志进行错误追踪,详情请见[隐私政策](https://github.com/ElainaMoe/MHYY-AutoCheckin/blob/master/private-policy.md)**
|
||||
|
||||
**要用Action跑请不要点Fork,点Use this template后在自己的号下创建一个仓库来跑,用Fork跑的时间会积累到本仓库,会导致本仓库被封!!!**
|
||||
|
||||
这是一个可以帮助你每天自动进行米忽悠云原神签到的脚本,自动获取每日的15分钟(600分钟后无法获取,这是米忽悠定下的规矩,无法突破)
|
||||
|
||||
> 云·星穹铁道自动签到脚本https://github.com/GamerNoTitle/SRCloud-AutoCheckin
|
||||
|
||||
## 快速开始
|
||||
|
||||
请参阅[文档](https://bili33.top/posts/MHYY-AutoCheckin-Manual-Gen2/)进行配置,有问题请在issue中提出。
|
||||
|
|
13
main.py
13
main.py
|
@ -144,6 +144,17 @@ if __name__ == '__main__':
|
|||
f'获取签到情况成功!当前签到情况为{json.loads(res.text)["data"]["list"][0]["msg"]}')
|
||||
sct_msg += f'获取签到情况成功!当前签到情况为{json.loads(res.text)["data"]["list"][0]["msg"]}'
|
||||
print(f'完整返回体为:{res.text}')
|
||||
print('正在尝试清除15分钟弹窗……')
|
||||
for popout in json.loads(res.text)['data']['list']:
|
||||
popid = popout['id']
|
||||
clear_result = r.post('https://api-cloudgame.mihoyo.com/hk4e_cg_cn/gamer/api/ackNotification', headers=headers, json={'id': str(popid)})
|
||||
try:
|
||||
if clear_result.status_code == 200 and clear_result.json()['msg'] == 'OK':
|
||||
print(f'已清除id为{popid}的弹窗!')
|
||||
else:
|
||||
print(f'清除弹窗失败!返回信息为:{clear_result.text}')
|
||||
except KeyError as e:
|
||||
print(f'清除弹窗失败!返回信息为:{clear_result.text};错误信息为:{e}')
|
||||
else:
|
||||
raise RunError(
|
||||
f"签到失败!请带着本次运行的所有log内容到 https://github.com/ElainaMoe/MHYY-AutoCheckin/issues 发起issue解决(或者自行解决)。签到出错,返回信息如下:{res.text}")
|
||||
|
@ -153,4 +164,4 @@ if __name__ == '__main__':
|
|||
print('sct推送完成!')
|
||||
else:
|
||||
print('sct无法推送')
|
||||
print(res.text)
|
||||
print(res.text)
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
requests
|
||||
sentry-sdk
|
||||
sentry-sdk
|
||||
pyyaml
|
Loading…
Reference in New Issue
Block a user