forked from Wenmoux/checkbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqmj.js
25 lines (25 loc) · 982 Bytes
/
qmj.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const rules = {
name: "【阡陌居】: ",
cookie: config.qmj.cookie,
url: "http://www.1050qm.com/plugin.php?id=dsu_paulsign:sign&operation=qiandao&infloat=0&inajax=0&mobile=yes", //用于获取formhash的链接
formhash: 'formhash=(.+?)\&', //formhash正则
verify: "您需要先登录才能继续本操作", //验证cookie状态
op: [{
name: "签到",
method: "post",
url: "http://www.1050qm.com/plugin.php?id=dsu_paulsign:sign&operation=qiandao&infloat=0&inajax=0", //签到链接
data: "formhash=@formhash&qdxq=wl"
},
{
name: "申请威望红包任务",
ua: "pc",
charset: "gb2312",
method: "get",
url: "http://www.1000qm.vip/home.php?mod=task&do=apply&id=1"
}]
};
async function togamemod() {
const template = require("../Template");
return rules.name + await template(rules)
}
module.exports = togamemod