Compare commits

...
10 Commits
Author SHA1 Message Date
GamerNoTitle 13ec8a7b8c Try to discard popups
SyncMirror / sync (push) Has been cancelled
2024-07-17 00:32:00 +08:00
GamerNoTitle 1f22b1e446 Update README.md 2024-05-02 11:32:35 +08:00
Pesy Wu 817c65b992 Stupid guy's here -> @GamerNoTitle #14 2024-02-24 17:57:54 +08:00
Pesy Wu 52ae5c836f #14 fix 2024-02-24 12:17:10 +08:00
Pesy Wu ae6911a72e fix missing requirement 2024-02-24 11:41:47 +08:00
Pesy Wu 61fa13ae6a fix var name in #14 2024-02-24 11:41:02 +08:00
GamerNoTitle 8e8179a775 Try to fix popup clear error 2024-02-12 17:14:40 +08:00
GamerNoTitle 14d7fcd9e3 KeyError Handler 2024-02-07 13:05:19 +08:00
GamerNoTitle 1c9ca05d34 Clear popout #12 2024-02-06 23:40:35 +08:00
GamerNoTitle 814d3c566c Update README.md 2024-02-06 15:46:40 +08:00
4 changed files with 19 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -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
+4
View File
@@ -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中提出。
+12 -1
View File
@@ -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)
+2 -1
View File
@@ -1,2 +1,3 @@
requests
sentry-sdk
sentry-sdk
pyyaml