Skip to content

Commit

Permalink
分离 天使动漫 - 签到 功能
Browse files Browse the repository at this point in the history
  • Loading branch information
PianCat authored Nov 14, 2023
1 parent 1623ad6 commit 562474b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions scripts/tsdmsign.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const rules = {
name: "【天使动漫】: ",
cookie: config.tsdm.cookie,
url: "https://www.tsdm39.com/plugin.php?id=dsu_paulsign:sign&mobile=yes", //用于获取formhash的链接
formhash: 'formhash=(.+?)\&', //formhash正则
verify: "您需要先登录才能继续本操作", //验证cookie状态
op: [{
name: "签到",
method: "post",
url: "https://www.tsdm39.com/plugin.php?id=dsu_paulsign:sign&operation=qiandao&infloat=0&inajax=0&mobile=yes", //签到链接
data: "formhash=@formhash&qdxq=kx&qdmode=3&todaysay=&fastreply=1"
}]
}
async function tsdmsign() {
const template = await require("../Template");
return rules.name + await template(rules)
}
module.exports = tsdmsign

0 comments on commit 562474b

Please sign in to comment.