写在开头

  Shell脚本来源网络,如存在侵权,联系删除。

  2024.11.29使用脚本可以正常签到使用

自动签到

获取雨云API密钥

  登录雨云官网,右上角点击账户设置 --> API密钥

  或者直接点击链接直达 --> 链接直达

   复制 API密钥 slYeUcMy75xSxxxxxxxxxxxxxxxxxxx

添加计划任务

  使用宝塔管理面板 / 1panel管理面板/使用 cron 服务都可以实现每日签到

  下面以1panel为例,进行设置。

  • 点击计划任务
  • 点击创建计划任务
  • 添加任务名称
  • 修改执行周期每天
  • 添加脚本内容
curl --location --request POST 'https://api.v2.rainyun.com/user/reward/tasks' \
--header 'x-api-key: API密钥' \
--header 'User-Agent: Apifox/1.0.0 (https://apifox.com)' \
--header 'Content-Type: application/json' \
--data-raw '{
    "task_name": "每日签到"
}'

  将上面Shell脚本之中API密钥改为自己的密钥内容。

  • 点击确认

自动签到

  每日2.30会自动执行脚本,也可手动执行脚本。

  并且1Panel可以查看执行报告内容,报告保留7天

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100    59  100    24  100    35     30     43 --:--:-- --:--:-- --:--:--    73
{"code":200,"data":"ok"}