Compare commits

..

No commits in common. "13ec8a7b8cdbe7094d504161fd2b806f6de82ccc" and "7ee6f3074839e3c78bca414b2eadadc7f35908b5" have entirely different histories.

4 changed files with 3 additions and 19 deletions

View File

@ -30,6 +30,6 @@ jobs:
pip install -r requirements.txt
- name: Run script
env:
MHYY_CONFIG: ${{ secrets.MHYY_SECRET }}
config: ${{ secrets.config }}
run: |
python3 main.py

View File

@ -6,12 +6,8 @@
**⚠请不要进行宣传谢谢一旦发现宣传就删库跑路使用过程中如果出现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中提出。

11
main.py
View File

@ -144,17 +144,6 @@ 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}")

View File

@ -1,3 +1,2 @@
requests
sentry-sdk
pyyaml