风来自远方 相爱的人总会相逢
歌曲封面 未知作品

蜀ICP备15021793号-2

网站已运行 4 年 58 天 21 小时 19 分

Powered by Typecho & Sunny

8 online · 35 ms

Title

网易云托管[自动打卡/签到]

Quite

·

Article
⚠️ 本文最后更新于2021年03月12日,已经过了1320天没有更新,若内容或图片失效,请留言反馈
Document

网易云自动打卡

接口可以到https://www.txmmp.cn/index.php/api.html 查看

有问题留言即可,本文章html代码如下

♾️ js 代码:
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.5.3/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  <script src="https://cdn.bootcdn.net/ajax/libs/layui/2.5.7/layui.all.min.js"></script>
  <title>Document</title>
  <style>
    .boxcss {
      display: flex;
      justify-content: center;
      flex-direction: column;
      width: 20rem;
      margin: 0 auto;
    }

    .boxcss input {
      margin: 5px;
    }

    #urlselect {
      width: 10rem;
      margin: 0 auto;
    }

    .headercss {
      margin: 0 auto;
    }

    .btn {
      margin: 0 auto;
    }

    #info {
      font-size: 15px;
    }

    #forminfo {
      text-align: center;
    }
  </style>
</head>

<body>
  <div class="boxcss">
    <div class="headercss">
      <h3>网易云自动打卡</h3>
    </div>
    <div class="alert alert-primary" role="alert" id="info">
      扫码登录自动加入后台,每日自动打卡300首歌/PC端签到
    </div>
    <form class="myForm">
      <div class="form-group">
        <label for="exampleInputEmail1">请输入邮箱(接收cookie失效提醒):</label>
        <input type="text" class="form-control" id="email" aria-describedby="emailHelp" name="id">
      </div>
    </form>
    <div class="btn">
      <button type="submit" class="btn btn-primary" id="sxbtn">获取登录二维码</button>
    </div>
    <div class="imgcss" style="margin:auto;"><img src="/" class="img-fluid" alt=""></div>
    <div class="alert alert-success" role="alert" id="forminfo">

    </div>
  </div>
  <script>
    var key = ''
    var flag = false
    $('#forminfo').hide()
    $('#sxbtn').on('click', function () {
      if ($('#email').val() != "") {
        $.ajax({
          url: 'https://wyy.txmmp.cn/1.php',
          success: (res) => {
            res = JSON.parse(res)
            if (res.status == 1) {
              layer.msg(res.msg)
              console.log(res.qrimg);
              $('.imgcss img').attr('src', res.qrimg)
              key = res.key
              let inters = setInterval(() => {
                if (!flag) {
                  $.ajax({
                    url: "https://wyy.txmmp.cn/postmusic.php",
                    type: "POST",
                    data: {
                      key,
                      email: $('#email').val()
                    },
                    success: (res) => {
                      $('#forminfo').show()
                      res = JSON.parse(res)
                      $('#forminfo').text(res.msg)
                      if (res.msg == "登陆成功") {
                        clearInterval(inters)
                        layer.open({
                          title: '登录提醒'
                          , content: '恭喜' + res.data.nickname + res.msg
                        });
                      }
                    }
                  })
                }

              }, 2000);
            }
          }
        })
      } else {
        layer.open({
          title: '提醒'
          , content: '请填写邮箱后获取'
        });
      }

    })

  </script>
</body>

</html>
现在已有 4 条评论,9 人点赞
Comment
发表
  1. 头像
    @
    大佬那个网易云托管的源码能不能分享啊,感觉好厉害!::(乖)
    · Windows · Chrome

    👍

    💖

    💯

    💦

    😄

    🪙

    👍 0 💖 0 💯 0 💦 0 😄 0 🪙 0
    1. 头像
      @
      那个我对接的是需要授权的,网上有免费的
      · iPhone · Safari

      👍

      💖

      💯

      💦

      😄

      🪙

      👍 0 💖 0 💯 0 💦 0 😄 0 🪙 0
      1. 头像
        @
        网上的没有监控,不能每日自动打卡::(惊哭)
        · Windows · Chrome

        👍

        💖

        💯

        💦

        😄

        🪙

        👍 0 💖 0 💯 0 💦 0 😄 0 🪙 0
        1. 头像
          @
          有啊。。
          · Windows · Chrome

          👍

          💖

          💯

          💦

          😄

          🪙

          👍 0 💖 0 💯 0 💦 0 😄 0 🪙 0
搜 索 消 息 足 迹
你还不曾留言过..
你还不曾留下足迹..
博主