网易云自动打卡
扫码登录自动加入后台,每日自动打卡300首歌/PC端签到
接口可以到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>
👍
💖
💯
💦
😄
🪙
👍
💖
💯
💦
😄
🪙
👍
💖
💯
💦
😄
🪙
博主
Quite @gddFeng👍
💖
💯
💦
😄
🪙