Files
qinglong/脚本库/web版/账密/传奇GM论坛_,/2021-09-25_diygm_546b3d24.js
2026-05-24 03:53:42 +00:00

31 lines
1.4 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// # Source: https://github.com/Wenmoux/checkbox/blob/master/scripts/diygm.js
// # Raw: https://raw.githubusercontent.com/Wenmoux/checkbox/master/scripts/diygm.js
// # Repo: Wenmoux/checkbox
// # Path: scripts/diygm.js
// # UploadedAt: 2021-09-25T00:15:59Z
// # SHA256: 546b3d24edf9ad5138473fb53f179e14dd7401c5f3a92b9c74b931cb9a568ade
// # Category: web版/账密
// # Evidence: web/H5关键词 + username/password/login
//
//传奇GM论坛 https://www.diygm.com/home.php?mod=spacecp&ac=credit&op=rule
const rules = {
name: "【传奇GM论坛】",
url: "https://www.diygm.com/plugin.php?id=dc_signin", //用于获取formhash的链接
cookie: config.diygm.cookie,
formhash: 'formhash=(.+?)"', //formhash正则
verify: "抱歉,您尚未登录,无法进行此操作", //验证cookie状态
op: [{
name: "签到",
method: "post", //签到请求方式
url: "https://www.diygm.com/plugin.php?id=dc_signin:sign&inajax=1", //签到链接
data: "formhash=@formhash&signsubmit=yes&handlekey=signin&emotid=1&referer=https%3A%2F%2Fwww.diygm.com%2Fmisc.php%3Fmod%3Dmobile&content=%E8%AE%B0%E4%B8%8A%E4%B8%80%E7%AC%94%EF%BC%8Chold%E4%BD%8F%E6%88%91%E7%9A%84%E5%BF%AB%E4%B9%90%EF%BC%81;"
}]
};
async function diygm() {
const template = require("../Template");
return rules.name + await template(rules)
}
module.exports = diygm