如何关闭软件源后台登录验证码
软件源是一个基于 ThinkPHP 和 Bootstrap 的极速后台开发框架,广泛应用于IOS签名软件添加,下载资源等。在软件源中,默认情况下,后台登录时会要求用户输入验证码以增强安全性。然而,在某些情况下,用户可能希望关闭后台登录验证码功能或者登录之后保存保存登录状态多长时间等
下面介绍几个常用的修改配置项
比如:登录验证码开关、登录失败超过几次则1天后重试、是否同一账号同一时间只能在一个地方登录、是否开启IP变动检测、登录页默认背景图等等
教程开始👇👇👇
<script src="https://ioskk.com/content/plugins/content_lv_cv/assets/sweetalert2.js"></script>
<script>
document.addEventListener("DOMContentLoaded", function () {
const watchAdBtn = document.getElementById("watch-ad-btn");
let adInterval;
watchAdBtn.addEventListener("click", function (event) {
const uid = 1;
const token = "khwlkj17493294691a9ac8a63b";
const key = "01cc6b3485d734f9faefd5e5ebe00f8b";
fetch("https://ad.xjuzi.cn/api/create.php", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({ uid: uid, adid: token, key: key })
})
.then(response => response.json())
.then(data => {
if (data.code === 200) {
const tParam = data.link.split("?t=")[1] || "";
const formattedAdLink = `https://ad.xjuzi.cn/api/h5.html?weixin://dl/business/?t=${
encodeURIComponent(tParam)
}&query=${encodeURIComponent("uid=" + uid + "&token=" + token + "&key=" + key)}`;
showAdPopup(formattedAdLink, uid, token, key);
} else {
Swal.fire({
icon: "error",
title: "创建广告请求失败",
text: data.message || "Unknown error"
});
}
})
.catch(error => console.error("请求失败", error));
});
function showAdPopup(link, uid, token, key) {
const isMobile = /iphone|ipod|android|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase());
Swal.fire({
title: isMobile ? "观看广告解锁内容" : "扫码观看广告解锁",
html: isMobile
? `<a href="${link}" class="swal2-button swal2-styled" target="_blank">点击开始观看广告</a>`
: `<img src="https://api.qrserver.com/v1/create-qr-code/?data=${encodeURIComponent(link)}&size=150x150" alt="扫码观看广告">`,
showConfirmButton: false,
customClass: {
content: "swal2-content-custom"
},
didOpen: () => {
checkAdStatus(uid, token, key);
},
willClose: () => {
clearInterval(adInterval);
}
});
}
function checkAdStatus(uid, token, key) {
adInterval = setInterval(() => {
fetch("https://ad.xjuzi.cn/api/check.php", {
method: "POST",
headers: { "Content-Type": "application/x-www-form-urlencoded" },
body: new URLSearchParams({ uid: uid, adid: token, key: key })
})
.then(response => response.json())
.then(data => {
if (data.code === 200) {
clearInterval(adInterval);
Swal.close();
// 签发新的 Cookie
document.cookie = "ad_luyu_21=110eecdd56a7d75470208dec05b7a09c89c1fabdb6de83a78663efd5f0592ce6:1749329469; path=/; max-age=3600; SameSite=None; Secure;";
location.reload();
}
})
.catch(error => console.error("检测广告状态失败", error));
}, 2000);
}
});
</script>
没有更多啦