forked from Wenmoux/checkbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
80 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -435,4 +435,10 @@ ablesci: | |
cookie: | ||
|
||
simba: | ||
refreshtoken: | ||
refreshtoken: | ||
|
||
pdg2pdf: | ||
cookie: | ||
|
||
mp4fan: | ||
cookie: |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const rules = { | ||
name: "【高清mp4】: ", | ||
url: "https://mp4fan.org/", //用于获取formhash的链接 | ||
cookie: config.mp4fan.cookie, | ||
formhash: 'formhash=(.+)"', //formhash正则 | ||
verify: "登录", //验证cookie状态 | ||
op: [{ | ||
name: "登录", | ||
method: "get", | ||
url: "https://mp4fan.org/", | ||
reg2: "退出" | ||
}] | ||
}; | ||
|
||
async function jlpzj() { | ||
const template = require("../Template"); | ||
return rules.name + await template(rules) | ||
} | ||
module.exports = jlpzj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const axios = require('axios'); | ||
|
||
async function dailyCheckin() { | ||
try { | ||
const headers = { | ||
cookie: config.pdg2pdf.cookie | ||
} | ||
const response = await axios.post('https://pdg2pdf.com/api/user/daily_checkin', "",{headers}); | ||
if (response.data.check_count) { | ||
msg = '签到成功!✅' | ||
} else { | ||
msg = '签到失败!❌'+response.data.error | ||
} | ||
console.log(msg) | ||
return "【PDG2PDF】:"+msg | ||
} catch (error) { | ||
msg = `签到失败!❌ 错误信息:${error.response.data.error}` | ||
console.log(msg) | ||
return "【PDG2PDF】:"+msg | ||
} | ||
} | ||
|
||
module.exports = dailyCheckin; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters