// # Source: https://github.com/Wenmoux/checkbox/blob/master/scripts/fishc.js
// # Raw: https://raw.githubusercontent.com/Wenmoux/checkbox/master/scripts/fishc.js
// # Repo: Wenmoux/checkbox
// # Path: scripts/fishc.js
// # UploadedAt: 2021-09-25T00:15:59Z
// # SHA256: 2fcb72b6b50e8095d2fbe70f2e3fc123bb687b34ac7d77f189d7bbd37f4a7a09
// # Category: APP版/抓包
// # Evidence: cookie/token/authorization/header
// 

const rules = {
    name: "【鱼C论坛】： ",
    url: "https://fishc.com.cn/plugin.php?id=k_misign:sign", //用于获取formhash的链接
    cookie: config.fishc.cookie,
    formhash: 'formhash=(.+?)\\"', //formhash正则
    verify: "您需要先登录才能继续本操作", //验证cookie状态
    op: [{
        name: "签到",
        charset: "gbk",
        method: "get", //签到请求方式 get/post
        url: "https://fishc.com.cn/plugin.php?id=k_misign:sign&operation=qiandao&format=text&formhash=@formhash"
    }]
};

async function fishc() {
    const template = require("../Template");
    return rules.name + await template(rules)
}
module.exports = fishc