shawenguan vor 1 Jahr
Ursprung
Commit
3515033e5f
1 geänderte Dateien mit 990 neuen und 990 gelöschten Zeilen
  1. 990 990
      Scripts/bilibili/bilibiliHelper.js

+ 990 - 990
Scripts/bilibili/bilibiliHelper.js

@@ -260,1019 +260,1019 @@ async function signBiliBili() {
     }
 }
 
-async function getAuthCode() {
-    return new Promise((resolve, reject) => {
-        const body = {
-            appkey: "27eb53fc9058f8c3",
-            local_id: 0,
-            ts: getTimestamp()
-        };
-        const sortedBody = magicJS.objToQueryStr(Object.fromEntries(new Map(Array.from(Object.entries(body)).sort())));
-        const sign = md5(sortedBody + 'c2ed53a74eeefe3cf99fbd01d8c9c375');
-        body['sign'] = sign;
-        const myRequest = {
-            url: "https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",
-            headers: {
-                "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
-            },
-            body: magicJS.objToQueryStr(body),
-        }
-        magicJS.http.post(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body.code === 0 && body.message === "0") {
-                    magicJS.logger.info("- 获取auth_code成功");
-                    resolve(body.data.auth_code);
-                } else {
-                    magicJS.logger.info("- 获取auth_code失败");
-                    resolve("0");
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-                resolve();
-            }
-        }).catch(err => {
-            const msg = `获取AuthCode异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject(msg);
-        });
-    });
-}
+// async function getAuthCode() {
+//     return new Promise((resolve, reject) => {
+//         const body = {
+//             appkey: "27eb53fc9058f8c3",
+//             local_id: 0,
+//             ts: getTimestamp()
+//         };
+//         const sortedBody = magicJS.objToQueryStr(Object.fromEntries(new Map(Array.from(Object.entries(body)).sort())));
+//         const sign = md5(sortedBody + 'c2ed53a74eeefe3cf99fbd01d8c9c375');
+//         body['sign'] = sign;
+//         const myRequest = {
+//             url: "https://passport.bilibili.com/x/passport-tv-login/qrcode/auth_code",
+//             headers: {
+//                 "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
+//             },
+//             body: magicJS.objToQueryStr(body),
+//         }
+//         magicJS.http.post(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body.code === 0 && body.message === "0") {
+//                     magicJS.logger.info("- 获取auth_code成功");
+//                     resolve(body.data.auth_code);
+//                 } else {
+//                     magicJS.logger.info("- 获取auth_code失败");
+//                     resolve("0");
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//                 resolve();
+//             }
+//         }).catch(err => {
+//             const msg = `获取AuthCode异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject(msg);
+//         });
+//     });
+// }
 
-async function loginConfirm(auth_code) {
-    return new Promise((resolve, reject) => {
-        const body = {
-            auth_code,
-            build: 7082000,
-            csrf: config.cookie.bili_jct
-        };
-        const myRequest = {
-            url: "https://passport.bilibili.com/x/passport-tv-login/h5/qrcode/confirm",
-            headers: {
-                "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
-                'cookie': `DedeUserID=${config.cookie.DedeUserID}; SESSDATA=${config.cookie.SESSDATA}`
-            },
-            body: magicJS.objToQueryStr(body),
-        };
-        magicJS.http.post(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body.code === 0 && body.message === "0") {
-                    magicJS.logger.info("- 确认登录成功")
-                    resolve(true);
-                } else {
-                    magicJS.logger.info("- 确认登录失败")
-                    resolve(false);
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-                resolve();
-            }
-        }).catch(err => {
-            const msg = `确认登录异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject(msg);
-        });
-    });
-}
+// async function loginConfirm(auth_code) {
+//     return new Promise((resolve, reject) => {
+//         const body = {
+//             auth_code,
+//             build: 7082000,
+//             csrf: config.cookie.bili_jct
+//         };
+//         const myRequest = {
+//             url: "https://passport.bilibili.com/x/passport-tv-login/h5/qrcode/confirm",
+//             headers: {
+//                 "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8",
+//                 'cookie': `DedeUserID=${config.cookie.DedeUserID}; SESSDATA=${config.cookie.SESSDATA}`
+//             },
+//             body: magicJS.objToQueryStr(body),
+//         };
+//         magicJS.http.post(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body.code === 0 && body.message === "0") {
+//                     magicJS.logger.info("- 确认登录成功")
+//                     resolve(true);
+//                 } else {
+//                     magicJS.logger.info("- 确认登录失败")
+//                     resolve(false);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//                 resolve();
+//             }
+//         }).catch(err => {
+//             const msg = `确认登录异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject(msg);
+//         });
+//     });
+// }
 
-async function getAccessKey(auth_code) {
-    return new Promise((resolve, reject) => {
-        const body = {
-            appkey: "27eb53fc9058f8c3",
-            auth_code,
-            local_id: 0,
-            ts: getTimestamp()
-        }
-        const sortedBody = magicJS.objToQueryStr(Object.fromEntries(new Map(Array.from(Object.entries(body)).sort())));
-        const sign = md5(sortedBody + 'c2ed53a74eeefe3cf99fbd01d8c9c375');
-        body['sign'] = sign;
-        const myRequest = {
-            url: "https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",
-            headers: {
-                "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
-            },
-            body: magicJS.objToQueryStr(body),
-        };
-        magicJS.http.post(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body.code === 0 && body.message === "0") {
-                    magicJS.logger.info("- 获取access_key成功");
-                    resolve(body.data.access_token);
-                } else {
-                    magicJS.logger.info("- 获取access_key失败");
-                    resolve("0");
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-                resolve();
-            }
-        }).catch(err => {
-            const msg = `获取AccessKey异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject(msg);
-        });
-    });
-}
+// async function getAccessKey(auth_code) {
+//     return new Promise((resolve, reject) => {
+//         const body = {
+//             appkey: "27eb53fc9058f8c3",
+//             auth_code,
+//             local_id: 0,
+//             ts: getTimestamp()
+//         }
+//         const sortedBody = magicJS.objToQueryStr(Object.fromEntries(new Map(Array.from(Object.entries(body)).sort())));
+//         const sign = md5(sortedBody + 'c2ed53a74eeefe3cf99fbd01d8c9c375');
+//         body['sign'] = sign;
+//         const myRequest = {
+//             url: "https://passport.bilibili.com/x/passport-tv-login/qrcode/poll",
+//             headers: {
+//                 "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8"
+//             },
+//             body: magicJS.objToQueryStr(body),
+//         };
+//         magicJS.http.post(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body.code === 0 && body.message === "0") {
+//                     magicJS.logger.info("- 获取access_key成功");
+//                     resolve(body.data.access_token);
+//                 } else {
+//                     magicJS.logger.info("- 获取access_key失败");
+//                     resolve("0");
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//                 resolve();
+//             }
+//         }).catch(err => {
+//             const msg = `获取AccessKey异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject(msg);
+//         });
+//     });
+// }
 
-async function watch(aid, bvid, cid) {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("1️⃣ 观看(登录)任务");
-        if (check("watch")) {
-            magicJS.logger.info(`- 正在观看(登录)(${bvid})`);
-            const body = {
-                aid,
-                cid,
-                bvid,
-                mid: config.user.mid,
-                csrf: config.cookie.bili_jct,
-                played_time : 1,
-                real_played_time: 1,
-                realtime: 1,
-                start_ts: getTimestamp(),
-                type: 3,
-                dt: 2,
-                play_type: 0,
-                from_spmid: 0,
-                spmid: 0,
-                auto_continued_play: 0,
-                refer_url: "https%3A%2F%2Ft.bilibili.com%2F",
-                bsource: ""
-            };
-            const myRequest = {
-                url: 'https://api.bilibili.com/x/click-interface/web/heartbeat',
-                headers: {
-                    "cookie": config.cookieStr,
-                    "referrer": `https://www.bilibili.com/video/${bvid}`
-                },
-                body: magicJS.objToQueryStr(body),
-            };
-            magicJS.http.post(myRequest).then(response => {
-                const body = response.body;
-                if (body?.code === 0) {
-                    magicJS.logger.info(`- 累计观看(登录)次数 ${(config.watch.num || 0) + 1}`);
-                    config.user.num = (config.user.num || 0) + 1;
-                    config.watch.num = (config.watch.num || 0) + 1;
-                    magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
-                } else {
-                    magicJS.logger.info("- 观看失败, 失败原因: " + body?.message);
-                }
-                resolve(body);
-            }).catch(err => {
-                const msg = `观看异常\n${JSON.stringify(err)}`;
-                magicJS.logger.error(msg);
-                reject();
-            });
-        } else {
-            magicJS.logger.info(`- 今日已经观看 ${config.watch.time}`);
-            resolve();
-        }
-    });
-}
+// async function watch(aid, bvid, cid) {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("1️⃣ 观看(登录)任务");
+//         if (check("watch")) {
+//             magicJS.logger.info(`- 正在观看(登录)(${bvid})`);
+//             const body = {
+//                 aid,
+//                 cid,
+//                 bvid,
+//                 mid: config.user.mid,
+//                 csrf: config.cookie.bili_jct,
+//                 played_time : 1,
+//                 real_played_time: 1,
+//                 realtime: 1,
+//                 start_ts: getTimestamp(),
+//                 type: 3,
+//                 dt: 2,
+//                 play_type: 0,
+//                 from_spmid: 0,
+//                 spmid: 0,
+//                 auto_continued_play: 0,
+//                 refer_url: "https%3A%2F%2Ft.bilibili.com%2F",
+//                 bsource: ""
+//             };
+//             const myRequest = {
+//                 url: 'https://api.bilibili.com/x/click-interface/web/heartbeat',
+//                 headers: {
+//                     "cookie": config.cookieStr,
+//                     "referrer": `https://www.bilibili.com/video/${bvid}`
+//                 },
+//                 body: magicJS.objToQueryStr(body),
+//             };
+//             magicJS.http.post(myRequest).then(response => {
+//                 const body = response.body;
+//                 if (body?.code === 0) {
+//                     magicJS.logger.info(`- 累计观看(登录)次数 ${(config.watch.num || 0) + 1}`);
+//                     config.user.num = (config.user.num || 0) + 1;
+//                     config.watch.num = (config.watch.num || 0) + 1;
+//                     magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
+//                 } else {
+//                     magicJS.logger.info("- 观看失败, 失败原因: " + body?.message);
+//                 }
+//                 resolve(body);
+//             }).catch(err => {
+//                 const msg = `观看异常\n${JSON.stringify(err)}`;
+//                 magicJS.logger.error(msg);
+//                 reject();
+//             });
+//         } else {
+//             magicJS.logger.info(`- 今日已经观看 ${config.watch.time}`);
+//             resolve();
+//         }
+//     });
+// }
 
-async function share(aid, cid, short_link) {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("2️⃣ 分享任务");
-        if (check("share")) {
-            magicJS.logger.info("- 正在分享, aid=" + aid);
-            const body = {
-                access_key: config.key.replace(/&actionKey=.*?&appkey=.*$/, ''),
-                actionKey: 'appkey',
-                appkey: '27eb53fc9058f8c3',
-                build: '72700100',
-                c_locale: 'zh-Hans_CN',
-                device: 'phone',
-                disable_rcmd: 0,
-                link: short_link,
-                mobi_app: 'iphone',
-                object_extra_fields: '%7B%7D',
-                oid: aid,
-                panel_type: 1,
-                platform: 'ios',
-                s_locale:'zh-Hans_CN',
-                share_channel: 'WEIXIN',
-                share_id: 'main.ugc-video-detail.0.0.pv',
-                share_origin: 'vinfo_share',
-                sid: cid,
-                spm_id: 'main.ugc-video-detail.0.0',
-                statistics: '%7B%22appId%22%3A1%2C%22version%22%3A%227.27.0%22%2C%22abtest%22%3A%22%22%2C%22platform%22%3A1%7D',
-                success: 1,
-                ts: getTimestamp()
-            }
-            const sign = md5(magicJS.objToQueryStr(body) + 'c2ed53a74eeefe3cf99fbd01d8c9c375');
-            body['sign'] = sign;
-            const myRequest = {
-                url: 'https://api.bilibili.com/x/share/finish',
-                headers: {},
-                body: magicJS.objToQueryStr(Object.fromEntries(new Map(Array.from(Object.entries(body)).sort())))
-            };
-            magicJS.http.post(myRequest).then(response => {
-                const body = response.body;
-                if (body?.code === 0) {
-                    config.share.num = (config.share.num || 0) + 1;
-                    magicJS.logger.info("- 分享成功");
-                    magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
-                } else {
-                    magicJS.logger.info("- 分享失败, 失败原因: " + body?.message);
-                }
-                resolve(body);
-            }).catch(err => {
-                const msg = `分享异常\n${JSON.stringify(err)}`;
-                magicJS.logger.error(msg);
-                reject();
-            });
-        } else {
-            magicJS.logger.info(`- 今日已经分享 ${config.share.time}`);
-            resolve();
-        }
-    });
-}
+// async function share(aid, cid, short_link) {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("2️⃣ 分享任务");
+//         if (check("share")) {
+//             magicJS.logger.info("- 正在分享, aid=" + aid);
+//             const body = {
+//                 access_key: config.key.replace(/&actionKey=.*?&appkey=.*$/, ''),
+//                 actionKey: 'appkey',
+//                 appkey: '27eb53fc9058f8c3',
+//                 build: '72700100',
+//                 c_locale: 'zh-Hans_CN',
+//                 device: 'phone',
+//                 disable_rcmd: 0,
+//                 link: short_link,
+//                 mobi_app: 'iphone',
+//                 object_extra_fields: '%7B%7D',
+//                 oid: aid,
+//                 panel_type: 1,
+//                 platform: 'ios',
+//                 s_locale:'zh-Hans_CN',
+//                 share_channel: 'WEIXIN',
+//                 share_id: 'main.ugc-video-detail.0.0.pv',
+//                 share_origin: 'vinfo_share',
+//                 sid: cid,
+//                 spm_id: 'main.ugc-video-detail.0.0',
+//                 statistics: '%7B%22appId%22%3A1%2C%22version%22%3A%227.27.0%22%2C%22abtest%22%3A%22%22%2C%22platform%22%3A1%7D',
+//                 success: 1,
+//                 ts: getTimestamp()
+//             }
+//             const sign = md5(magicJS.objToQueryStr(body) + 'c2ed53a74eeefe3cf99fbd01d8c9c375');
+//             body['sign'] = sign;
+//             const myRequest = {
+//                 url: 'https://api.bilibili.com/x/share/finish',
+//                 headers: {},
+//                 body: magicJS.objToQueryStr(Object.fromEntries(new Map(Array.from(Object.entries(body)).sort())))
+//             };
+//             magicJS.http.post(myRequest).then(response => {
+//                 const body = response.body;
+//                 if (body?.code === 0) {
+//                     config.share.num = (config.share.num || 0) + 1;
+//                     magicJS.logger.info("- 分享成功");
+//                     magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
+//                 } else {
+//                     magicJS.logger.info("- 分享失败, 失败原因: " + body?.message);
+//                 }
+//                 resolve(body);
+//             }).catch(err => {
+//                 const msg = `分享异常\n${JSON.stringify(err)}`;
+//                 magicJS.logger.error(msg);
+//                 reject();
+//             });
+//         } else {
+//             magicJS.logger.info(`- 今日已经分享 ${config.share.time}`);
+//             resolve();
+//         }
+//     });
+// }
 
-async function coin() {
-    return new Promise((resolve, reject) => {
-        if (config.coins.num >= 50) {
-            magicJS.logger.info(`- 今日已完成 ${config.coins.time}`);
-            resolve();
-            return;
-        }
-        let like_uid_list = await getFavUid()
-        if (like_uid_list && like_uid_list.length > 0) {
-            let aid = await getFavAid(like_uid_list)
-            //magicJS.logger.info("即将投币的视频aid: " + aid)
-            if (aid !== 0) {
-                const body = {
-                    aid,
-                    multiply: 1,
-                    select_like: 0,
-                    cross_domain: true,
-                    csrf: config.cookie.bili_jct
-                }
-                const myRequest = {
-                    url: "https://api.bilibili.com/x/web-interface/coin/add",
-                    headers: {
-                        'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36',
-                        'accept': 'application/json, text/plain, */*',
-                        'content-type': 'application/x-www-form-urlencoded',
-                        'origin': 'https://www.bilibili.com',
-                        'referer': 'https://www.bilibili.com/video/BV1MT411G7fG?vd_source=1970993e2eff4af7be029aefcfa468b8',
-                        'cookie': config.cookieStr + ';buvid3=fuckchenruilovelaoliu'
-                    },
-                    body: magicJS.objToQueryStr(body)
-                }
-                magicJS.http.post(myRequest).then(async response => {
-                    try {
-                        const body = response.body;
-                        if (body?.code === 0 && body?.message === "0") {
-                            magicJS.logger.info("- 投币成功");
-                            config.user.money -= 1;
-                            config.coins.num += 10;
-                            magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
-                        } else {
-                            magicJS.logger.info("- 投币失败,失败原因 " + body.message);
-                            config.coins.failures = (config.coins.failures === 0 || typeof config.coins.failures === 'undefined' ? 1 : config.coins.failures + 1);
-                            magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
-                            if (config.coins.failures < 11) {
-                                magicJS.logger.info("- 正在重试...重试次数 " + (config.coins.failures - 1) + "(超过十次不再重试)");
-                                await coin();
-                            }
-                        }
-                    } catch (e) {
-                        magicJS.logger.error(e);
-                    }
-                    resolve();
-                }).catch(err => {
-                    const msg = `投币异常\n${JSON.stringify(err)}`;
-                    magicJS.logger.error(msg);
-                    reject();
-                });
-            } else {
-                magicJS.logger.info("获取随机投币视频失败");
-                resolve();
-            }
-        } else {
-            magicJS.logger.info("获取随机关注用户列表失败");
-            resolve();
-        }
-    });
-}
+// async function coin() {
+//     return new Promise((resolve, reject) => {
+//         if (config.coins.num >= 50) {
+//             magicJS.logger.info(`- 今日已完成 ${config.coins.time}`);
+//             resolve();
+//             return;
+//         }
+//         let like_uid_list = await getFavUid()
+//         if (like_uid_list && like_uid_list.length > 0) {
+//             let aid = await getFavAid(like_uid_list)
+//             //magicJS.logger.info("即将投币的视频aid: " + aid)
+//             if (aid !== 0) {
+//                 const body = {
+//                     aid,
+//                     multiply: 1,
+//                     select_like: 0,
+//                     cross_domain: true,
+//                     csrf: config.cookie.bili_jct
+//                 }
+//                 const myRequest = {
+//                     url: "https://api.bilibili.com/x/web-interface/coin/add",
+//                     headers: {
+//                         'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36',
+//                         'accept': 'application/json, text/plain, */*',
+//                         'content-type': 'application/x-www-form-urlencoded',
+//                         'origin': 'https://www.bilibili.com',
+//                         'referer': 'https://www.bilibili.com/video/BV1MT411G7fG?vd_source=1970993e2eff4af7be029aefcfa468b8',
+//                         'cookie': config.cookieStr + ';buvid3=fuckchenruilovelaoliu'
+//                     },
+//                     body: magicJS.objToQueryStr(body)
+//                 }
+//                 magicJS.http.post(myRequest).then(async response => {
+//                     try {
+//                         const body = response.body;
+//                         if (body?.code === 0 && body?.message === "0") {
+//                             magicJS.logger.info("- 投币成功");
+//                             config.user.money -= 1;
+//                             config.coins.num += 10;
+//                             magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
+//                         } else {
+//                             magicJS.logger.info("- 投币失败,失败原因 " + body.message);
+//                             config.coins.failures = (config.coins.failures === 0 || typeof config.coins.failures === 'undefined' ? 1 : config.coins.failures + 1);
+//                             magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
+//                             if (config.coins.failures < 11) {
+//                                 magicJS.logger.info("- 正在重试...重试次数 " + (config.coins.failures - 1) + "(超过十次不再重试)");
+//                                 await coin();
+//                             }
+//                         }
+//                     } catch (e) {
+//                         magicJS.logger.error(e);
+//                     }
+//                     resolve();
+//                 }).catch(err => {
+//                     const msg = `投币异常\n${JSON.stringify(err)}`;
+//                     magicJS.logger.error(msg);
+//                     reject();
+//                 });
+//             } else {
+//                 magicJS.logger.info("获取随机投币视频失败");
+//                 resolve();
+//             }
+//         } else {
+//             magicJS.logger.info("获取随机关注用户列表失败");
+//             resolve();
+//         }
+//     });
+// }
 
-async function getFavUid() {
-    return new Promise((resolve, reject) => {
-        const myRequest = {
-            url: `https://api.bilibili.com/x/relation/followings?vmid=${config.cookie.DedeUserID}&ps=10&order_type=attention`,
-            headers: {
-                'cookie': config.cookieStr
-            }
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                let like_uid_list = new Array();
-                if (body?.code === 0) {
-                    magicJS.logger.info("- 获取关注列表成功");
-                    let like_list = body?.data?.list;
-                    for (let i = 0; i < like_list.length; i ++) {
-                        like_uid_list[i] = like_list[i].mid;
-                    }
-                    resolve(like_uid_list);
-                } else {
-                    magicJS.logger.info("- 获取关注列表成失败");
-                    magicJS.logger.info("- 失败原因 " + body?.message);
-                    resolve(like_uid_list);
-                }
-            } catch (e) {
-                magicJS.logger.error(JSON.stringify(e));
-                resolve();
-            }
-        }).catch(err => {
-            const msg = `获取关注列表异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function getFavUid() {
+//     return new Promise((resolve, reject) => {
+//         const myRequest = {
+//             url: `https://api.bilibili.com/x/relation/followings?vmid=${config.cookie.DedeUserID}&ps=10&order_type=attention`,
+//             headers: {
+//                 'cookie': config.cookieStr
+//             }
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 let like_uid_list = new Array();
+//                 if (body?.code === 0) {
+//                     magicJS.logger.info("- 获取关注列表成功");
+//                     let like_list = body?.data?.list;
+//                     for (let i = 0; i < like_list.length; i ++) {
+//                         like_uid_list[i] = like_list[i].mid;
+//                     }
+//                     resolve(like_uid_list);
+//                 } else {
+//                     magicJS.logger.info("- 获取关注列表成失败");
+//                     magicJS.logger.info("- 失败原因 " + body?.message);
+//                     resolve(like_uid_list);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(JSON.stringify(e));
+//                 resolve();
+//             }
+//         }).catch(err => {
+//             const msg = `获取关注列表异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function getFavAid(arr) {
-    return new Promise((resolve, reject) => {
-        //magicJS.logger.info("- 获取关注列表中的随机视频")
-        let random_int = Math.floor((Math.random()*arr.length));
-        let random_mid = arr[random_int];
-        let wbiSigns = getWbiSigns({mid: random_mid});
-        const myRequest = {
-            url: `https://api.bilibili.com/x/space/wbi/arc/search?${wbiSigns}`,
-            headers: {
-                'cookie': config.cookieStr
-            }
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.code === 0) {
-                    magicJS.logger.info("- 获取投币视频成功");
-                    let vlist = body.data?.list?.vlist;
-                    let random_v_int = Math.floor((Math.random() * vlist.length));
-                    let aid = vlist[random_v_int]?.aid;
-                    magicJS.logger.info("- 作者: " + vlist[random_v_int]['author'] + "; 视频标题: " + vlist[random_v_int]['title']);
-                    resolve(aid);
-                } else {
-                    magicJS.logger.info("- 获取投币视频失败");
-                    magicJS.logger.info("- 失败原因 " + body?.message);
-                    resolve(0);
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-                resolve();
-            }
-        }, reason => {
-            magicJS.logger.info("- 获取投币视频失败");
-            magicJS.logger.info("- 失败原因 " + magicJS.toStr(reason));
-            resolve(0);
-        }).catch(err => {
-            const msg = `获取投币视频异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function getFavAid(arr) {
+//     return new Promise((resolve, reject) => {
+//         //magicJS.logger.info("- 获取关注列表中的随机视频")
+//         let random_int = Math.floor((Math.random()*arr.length));
+//         let random_mid = arr[random_int];
+//         let wbiSigns = getWbiSigns({mid: random_mid});
+//         const myRequest = {
+//             url: `https://api.bilibili.com/x/space/wbi/arc/search?${wbiSigns}`,
+//             headers: {
+//                 'cookie': config.cookieStr
+//             }
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.code === 0) {
+//                     magicJS.logger.info("- 获取投币视频成功");
+//                     let vlist = body.data?.list?.vlist;
+//                     let random_v_int = Math.floor((Math.random() * vlist.length));
+//                     let aid = vlist[random_v_int]?.aid;
+//                     magicJS.logger.info("- 作者: " + vlist[random_v_int]['author'] + "; 视频标题: " + vlist[random_v_int]['title']);
+//                     resolve(aid);
+//                 } else {
+//                     magicJS.logger.info("- 获取投币视频失败");
+//                     magicJS.logger.info("- 失败原因 " + body?.message);
+//                     resolve(0);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//                 resolve();
+//             }
+//         }, reason => {
+//             magicJS.logger.info("- 获取投币视频失败");
+//             magicJS.logger.info("- 失败原因 " + magicJS.toStr(reason));
+//             resolve(0);
+//         }).catch(err => {
+//             const msg = `获取投币视频异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function silver2coin() {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 银瓜子兑换硬币任务");
-        const body = {
-            csrf: config.cookie.bili_jct,
-            csrf_token: config.cookie.bili_jct
-        };
-        const myRequest = {
-            url: "https://api.live.bilibili.com/xlive/revenue/v1/wallet/silver2coin",
-            headers: {
-                'cookie': config.cookieStr
-            },
-            body: magicJS.objToQueryStr(body)
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                let result = response.body;
-                let title = `银瓜子转硬币`;
-                // 兑换成功
-                if (result && result.code === 0) {
-                    let subTitle = `- ${result.message}`;
-                    let detail = `- 成功兑换: ${result.data.coin} 个硬币\n当前银瓜子: ${result.data.silver} , 当前金瓜子: ${result.data.gold}`;
-                    magicJS.logger.info(subTitle);
-                    magicJS.logger.info(detail);
-                    magicJS.notification.post(title, subTitle, detail);
-                }
-                // 兑换中止(重复兑换&银瓜子不足)
-                else if (result && result.code === 403) {
-                    let subTitle = "- 未成功兑换";
-                    let detail = `- 原因: ${result.message}`;
-                    magicJS.logger.info(subTitle);
-                    magicJS.logger.info(detail);
-                    magicJS.notification.post(title, subTitle, detail);
-                }
-                // 兑换失败
-                else {
-                    let subTitle = "- 兑换失败";
-                    let detail = `- 原因: ${result.message}`;
-                    magicJS.logger.info(subTitle);
-                    magicJS.logger.info(detail);
-                    magicJS.notification.post(title, subTitle, detail);
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `兑换异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject(msg);
-        });
-    });
-}
+// async function silver2coin() {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 银瓜子兑换硬币任务");
+//         const body = {
+//             csrf: config.cookie.bili_jct,
+//             csrf_token: config.cookie.bili_jct
+//         };
+//         const myRequest = {
+//             url: "https://api.live.bilibili.com/xlive/revenue/v1/wallet/silver2coin",
+//             headers: {
+//                 'cookie': config.cookieStr
+//             },
+//             body: magicJS.objToQueryStr(body)
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 let result = response.body;
+//                 let title = `银瓜子转硬币`;
+//                 // 兑换成功
+//                 if (result && result.code === 0) {
+//                     let subTitle = `- ${result.message}`;
+//                     let detail = `- 成功兑换: ${result.data.coin} 个硬币\n当前银瓜子: ${result.data.silver} , 当前金瓜子: ${result.data.gold}`;
+//                     magicJS.logger.info(subTitle);
+//                     magicJS.logger.info(detail);
+//                     magicJS.notification.post(title, subTitle, detail);
+//                 }
+//                 // 兑换中止(重复兑换&银瓜子不足)
+//                 else if (result && result.code === 403) {
+//                     let subTitle = "- 未成功兑换";
+//                     let detail = `- 原因: ${result.message}`;
+//                     magicJS.logger.info(subTitle);
+//                     magicJS.logger.info(detail);
+//                     magicJS.notification.post(title, subTitle, detail);
+//                 }
+//                 // 兑换失败
+//                 else {
+//                     let subTitle = "- 兑换失败";
+//                     let detail = `- 原因: ${result.message}`;
+//                     magicJS.logger.info(subTitle);
+//                     magicJS.logger.info(detail);
+//                     magicJS.notification.post(title, subTitle, detail);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `兑换异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject(msg);
+//         });
+//     });
+// }
 
-async function liveSign() {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 直播签到任务");
-        const myRequest = {
-            url: "https://api.live.bilibili.com/xlive/web-ucenter/v1/sign/DoSign",
-            headers: {
-                'cookie': config.cookieStr
-            }
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                let body = response.body;
-                if (body?.code === 0) {
-                    magicJS.logger.info("- 签到成功");
-                    magicJS.logger.info(`签到奖励:${body.data.text},连续签到${body.data.hadSignDays}天`);
-                } else if (body && body.code === 1011040){
-                    magicJS.logger.info("- 今日已完成");
-                } else {
-                    magicJS.logger.info("- 签到失败");
-                    magicJS.logger.info("- 失败原因 " + body?.message);
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `签到异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject(msg);
-        });
-    });
-}
+// async function liveSign() {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 直播签到任务");
+//         const myRequest = {
+//             url: "https://api.live.bilibili.com/xlive/web-ucenter/v1/sign/DoSign",
+//             headers: {
+//                 'cookie': config.cookieStr
+//             }
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 let body = response.body;
+//                 if (body?.code === 0) {
+//                     magicJS.logger.info("- 签到成功");
+//                     magicJS.logger.info(`签到奖励:${body.data.text},连续签到${body.data.hadSignDays}天`);
+//                 } else if (body && body.code === 1011040){
+//                     magicJS.logger.info("- 今日已完成");
+//                 } else {
+//                     magicJS.logger.info("- 签到失败");
+//                     magicJS.logger.info("- 失败原因 " + body?.message);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `签到异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject(msg);
+//         });
+//     });
+// }
 
-async function vipScoreSign() {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 大会员大积分签到任务");
-        if (config.user.vipStatus === 0) {
-            magicJS.logger.info("- 当前用户非大会员, 无法完成任务");
-            resolve();
-        } else {
-            if (check("score")) {
-                const myRequest = {
-                    url: "https://api.bilibili.com/pgc/activity/score/task/sign",
-                    method: "POST",
-                    headers: {
-                        'Referer': 'https://big.bilibili.com/mobile/bigPoint/task',
-                        'cookie': config.cookieStr
-                    }
-                };
-                magicJS.http.get(myRequest).then(response => {
-                    try {
-                        const body = response.body;
-                        if (body?.code === 0 && body?.message === "success") {
-                            magicJS.logger.info("- 签到成功")
-                            config.score.time = startTime
-                            config.score.num = 1
-                            magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config))
-                        } else {
-                            magicJS.logger.info("- 签到失败")
-                            magicJS.logger.info("- 失败原因 " + body?.message)
-                        }
-                    } catch (e) {
-                        magicJS.logger.error(e);
-                    }
-                    resolve();
-                }).catch(err => {
-                    const msg = `签到异常\n${JSON.stringify(err)}`;
-                    magicJS.logger.error(msg);
-                    reject();
-                });
-            } else {
-                magicJS.logger.info("- 今日已完成");
-                resolve();
-            }
-        }
-    });
-}
+// async function vipScoreSign() {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 大会员大积分签到任务");
+//         if (config.user.vipStatus === 0) {
+//             magicJS.logger.info("- 当前用户非大会员, 无法完成任务");
+//             resolve();
+//         } else {
+//             if (check("score")) {
+//                 const myRequest = {
+//                     url: "https://api.bilibili.com/pgc/activity/score/task/sign",
+//                     method: "POST",
+//                     headers: {
+//                         'Referer': 'https://big.bilibili.com/mobile/bigPoint/task',
+//                         'cookie': config.cookieStr
+//                     }
+//                 };
+//                 magicJS.http.get(myRequest).then(response => {
+//                     try {
+//                         const body = response.body;
+//                         if (body?.code === 0 && body?.message === "success") {
+//                             magicJS.logger.info("- 签到成功")
+//                             config.score.time = startTime
+//                             config.score.num = 1
+//                             magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config))
+//                         } else {
+//                             magicJS.logger.info("- 签到失败")
+//                             magicJS.logger.info("- 失败原因 " + body?.message)
+//                         }
+//                     } catch (e) {
+//                         magicJS.logger.error(e);
+//                     }
+//                     resolve();
+//                 }).catch(err => {
+//                     const msg = `签到异常\n${JSON.stringify(err)}`;
+//                     magicJS.logger.error(msg);
+//                     reject();
+//                 });
+//             } else {
+//                 magicJS.logger.info("- 今日已完成");
+//                 resolve();
+//             }
+//         }
+//     });
+// }
 
-async function vipExtraEx() {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 大会员每日额外经验值");
-        const body = {
-            csrf: config.cookie.bili_jct,
-            ts: getTimestamp(),
-            buvid: config.cookie.Buvid,
-            mobi_app: 'iphone',
-            platform: 'ios',
-            appkey: '27eb53fc9058f8c3',
-            access_key: config.key
-        };
-        const sortedBody = magicJS.objToQueryStr(Object.fromEntries(new Map(Array.from(Object.entries(body)).sort())));
-        const sign = md5(sortedBody + 'c2ed53a74eeefe3cf99fbd01d8c9c375');
-        body['sign'] = sign;
-        const myRequest = {
-            url: "https://api.bilibili.com/x/vip/experience/add",
-            headers: {
-                'accept': 'application/json, text/plain, */*',
-                'app-key': 'iphone'
-            },
-            body: magicJS.objToQueryStr(body)
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.code === 0 && body?.message === "0") {
-                    magicJS.logger.info("- 成功获得10经验值");
-                } else {
-                    magicJS.logger.info("- 每日额外经验任务失败");
-                    magicJS.logger.info("- 失败原因 " + body?.message);
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `获取额外经验异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function vipExtraEx() {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 大会员每日额外经验值");
+//         const body = {
+//             csrf: config.cookie.bili_jct,
+//             ts: getTimestamp(),
+//             buvid: config.cookie.Buvid,
+//             mobi_app: 'iphone',
+//             platform: 'ios',
+//             appkey: '27eb53fc9058f8c3',
+//             access_key: config.key
+//         };
+//         const sortedBody = magicJS.objToQueryStr(Object.fromEntries(new Map(Array.from(Object.entries(body)).sort())));
+//         const sign = md5(sortedBody + 'c2ed53a74eeefe3cf99fbd01d8c9c375');
+//         body['sign'] = sign;
+//         const myRequest = {
+//             url: "https://api.bilibili.com/x/vip/experience/add",
+//             headers: {
+//                 'accept': 'application/json, text/plain, */*',
+//                 'app-key': 'iphone'
+//             },
+//             body: magicJS.objToQueryStr(body)
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.code === 0 && body?.message === "0") {
+//                     magicJS.logger.info("- 成功获得10经验值");
+//                 } else {
+//                     magicJS.logger.info("- 每日额外经验任务失败");
+//                     magicJS.logger.info("- 失败原因 " + body?.message);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `获取额外经验异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function vipScoreGo() {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 大会员浏览会员购10s任务");
-        const myRequest = {
-            url: "https://show.bilibili.com/api/activity/fire/common/event/dispatch",
-            headers: {
-                'Content-Type' : 'application/json',
-                'Cookie': config.cookieStr
-            },
-            body: `{"eventId":"hevent_oy4b7h3epeb"}`
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.code === 0 && body?.message === "SUCCESS") {
-                    magicJS.logger.info("- 成功获得10点大积分");
-                } else {
-                    magicJS.logger.info("- 浏览会员购任务失败");
-                    magicJS.logger.info("- 失败原因 " + body?.message);
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `浏览会员购任务异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function vipScoreGo() {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 大会员浏览会员购10s任务");
+//         const myRequest = {
+//             url: "https://show.bilibili.com/api/activity/fire/common/event/dispatch",
+//             headers: {
+//                 'Content-Type' : 'application/json',
+//                 'Cookie': config.cookieStr
+//             },
+//             body: `{"eventId":"hevent_oy4b7h3epeb"}`
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.code === 0 && body?.message === "SUCCESS") {
+//                     magicJS.logger.info("- 成功获得10点大积分");
+//                 } else {
+//                     magicJS.logger.info("- 浏览会员购任务失败");
+//                     magicJS.logger.info("- 失败原因 " + body?.message);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `浏览会员购任务异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function vipScoreFan() {
-    return new Promise((resolve, reject) => {
-    magicJS.logger.info("#### 大会员浏览追番频道10s任务");
-        const myRequest = {
-            url: `https://api.bilibili.com/pgc/activity/deliver/task/complete?access_key=${config.key}&position=jp_channel&sign=768d600feba34e6d1109e4157c0f0c5f&task_sign=557D1ACE13E9E81393259FFB621D6D0E`,
-            method: "POST",
-            headers: {}
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.code === 0 && body?.message === "success") {
-                    magicJS.logger.info("- 成功获得10点大积分");
-                } else {
-                    magicJS.logger.info("- 浏览追番频道任务失败");
-                    magicJS.logger.info("- 失败原因 " + body?.message);
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `浏览追番频道任务异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function vipScoreFan() {
+//     return new Promise((resolve, reject) => {
+//     magicJS.logger.info("#### 大会员浏览追番频道10s任务");
+//         const myRequest = {
+//             url: `https://api.bilibili.com/pgc/activity/deliver/task/complete?access_key=${config.key}&position=jp_channel&sign=768d600feba34e6d1109e4157c0f0c5f&task_sign=557D1ACE13E9E81393259FFB621D6D0E`,
+//             method: "POST",
+//             headers: {}
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.code === 0 && body?.message === "success") {
+//                     magicJS.logger.info("- 成功获得10点大积分");
+//                 } else {
+//                     magicJS.logger.info("- 浏览追番频道任务失败");
+//                     magicJS.logger.info("- 失败原因 " + body?.message);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `浏览追番频道任务异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function vipScoreMovie() {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 大会员浏览影视频道10s任务");
-        const myRequest = {
-            url: `https://api.bilibili.com/pgc/activity/deliver/task/complete?access_key=${config.key}&position=tv_channel&sign=09ece1c295cb86d74778b93c59c0da3a&task_sign=B7DA5FAE25C39F53C62C03076CF2878B`,
-            method: "POST",
-            headers: {}
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.code === 0 && body?.message === "success") {
-                    magicJS.logger.info("- 成功获得10点大积分");
-                } else {
-                    magicJS.logger.info("- 浏览影视频道任务失败");
-                    magicJS.logger.info("- 失败原因 " + body?.message);
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `浏览影视频道任务异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function vipScoreMovie() {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 大会员浏览影视频道10s任务");
+//         const myRequest = {
+//             url: `https://api.bilibili.com/pgc/activity/deliver/task/complete?access_key=${config.key}&position=tv_channel&sign=09ece1c295cb86d74778b93c59c0da3a&task_sign=B7DA5FAE25C39F53C62C03076CF2878B`,
+//             method: "POST",
+//             headers: {}
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.code === 0 && body?.message === "success") {
+//                     magicJS.logger.info("- 成功获得10点大积分");
+//                 } else {
+//                     magicJS.logger.info("- 浏览影视频道任务失败");
+//                     magicJS.logger.info("- 失败原因 " + body?.message);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `浏览影视频道任务异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function vipScoreDress() {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 大会员浏览装扮商城主页任务");
-        const body = {
-            csrf: config.cookie.bili_jct,
-            ts: getTimestamp(),
-            taskCode: 'dress-view',
-            access_key: config.key
-        };
-        const myRequest = {
-            url: 'https://api.bilibili.com/pgc/activity/score/task/complete/v2',
-            headers: {},
-            body: magicJS.objToQueryStr(body)
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.code === 0 && body?.message === "success") {
-                    magicJS.logger.info("- 成功获得10点大积分");
-                } else {
-                    magicJS.logger.info("- 浏览装扮商城主页任务失败");
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `浏览装扮商城主页任务异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function vipScoreDress() {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 大会员浏览装扮商城主页任务");
+//         const body = {
+//             csrf: config.cookie.bili_jct,
+//             ts: getTimestamp(),
+//             taskCode: 'dress-view',
+//             access_key: config.key
+//         };
+//         const myRequest = {
+//             url: 'https://api.bilibili.com/pgc/activity/score/task/complete/v2',
+//             headers: {},
+//             body: magicJS.objToQueryStr(body)
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.code === 0 && body?.message === "success") {
+//                     magicJS.logger.info("- 成功获得10点大积分");
+//                 } else {
+//                     magicJS.logger.info("- 浏览装扮商城主页任务失败");
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `浏览装扮商城主页任务异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function vipWatchAccept() {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 接取大会员观看剧集10min任务");
-        const body = {
-            csrf: config.cookie.bili_jct,
-            ts: getTimestamp(),
-            taskCode: 'ogvwatchnew',
-            mobi_app: 'iphone',
-            platform: 'ios',
-            appkey: '27eb53fc9058f8c3',
-            access_key: config.key
-        };
-        const sortedBody = magicJS.objToQueryStr(Object.fromEntries(new Map(Array.from(Object.entries(body)).sort())));
-        const sign = md5(sortedBody + 'c2ed53a74eeefe3cf99fbd01d8c9c375');
-        body['sign'] = sign
-        const myRequest = {
-            url: 'https://api.bilibili.com/pgc/activity/score/task/receive/v2',
-            headers: {
-                'Content-Type': 'application/x-www-form-urlencoded',
-                'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/615.2.9.10.4 (KHTML, like Gecko) Mobile/20F75 BiliApp/77200100 os/ios model/iPhone 15 Pro Max mobi_app/iphone build/77200100 osVer/17.4.1 network/2 channel/AppStore c_locale/zh-Hans_CN s_locale/zh-Hans_CN disable_rcmd/0',
-                'Cookie': `SESSDATA=${config.cookie.SESSDATA}`,
-                'Referer': `https://big.bilibili.com/mobile/bigPoint/task`
-            },
-            body: magicJS.objToQueryStr(body)
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.code === 0 && body?.message === "success") {
-                    magicJS.logger.info("- 大会员观看剧集任务接取成功, 需自行观看");
-                } else {
-                    magicJS.logger.info("- 大会员观看剧集任务接取失败");
-                    magicJS.logger.info("- 失败原因 " + body?.message);
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `大会员观看剧集任务异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function vipWatchAccept() {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 接取大会员观看剧集10min任务");
+//         const body = {
+//             csrf: config.cookie.bili_jct,
+//             ts: getTimestamp(),
+//             taskCode: 'ogvwatchnew',
+//             mobi_app: 'iphone',
+//             platform: 'ios',
+//             appkey: '27eb53fc9058f8c3',
+//             access_key: config.key
+//         };
+//         const sortedBody = magicJS.objToQueryStr(Object.fromEntries(new Map(Array.from(Object.entries(body)).sort())));
+//         const sign = md5(sortedBody + 'c2ed53a74eeefe3cf99fbd01d8c9c375');
+//         body['sign'] = sign
+//         const myRequest = {
+//             url: 'https://api.bilibili.com/pgc/activity/score/task/receive/v2',
+//             headers: {
+//                 'Content-Type': 'application/x-www-form-urlencoded',
+//                 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/615.2.9.10.4 (KHTML, like Gecko) Mobile/20F75 BiliApp/77200100 os/ios model/iPhone 15 Pro Max mobi_app/iphone build/77200100 osVer/17.4.1 network/2 channel/AppStore c_locale/zh-Hans_CN s_locale/zh-Hans_CN disable_rcmd/0',
+//                 'Cookie': `SESSDATA=${config.cookie.SESSDATA}`,
+//                 'Referer': `https://big.bilibili.com/mobile/bigPoint/task`
+//             },
+//             body: magicJS.objToQueryStr(body)
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.code === 0 && body?.message === "success") {
+//                     magicJS.logger.info("- 大会员观看剧集任务接取成功, 需自行观看");
+//                 } else {
+//                     magicJS.logger.info("- 大会员观看剧集任务接取失败");
+//                     magicJS.logger.info("- 失败原因 " + body?.message);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `大会员观看剧集任务异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function vipPrivilege(type) {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 领取大会员月度福利");
-        const body = {
-            csrf: config.cookie.bili_jct,
-            type
-        };
-        const myRequest = {
-            url: 'https://api.bilibili.com/x/vip/privilege/receive',
-            headers: {
-                'Cookie': config.cookieStr
-            },
-            body: magicJS.objToQueryStr(body)
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.code === 0) {
-                    switch (type) {
-                        case 1:
-                            magicJS.logger.info("- 领取年度大会员每月B币券成功");
-                            magicJS.notification.post("年度大会员月度福利", "B币券", "🎉🎉🎉领取成功");
-                            break
-                        case 2:
-                            magicJS.logger.info("- 领取年度大会员每月会员购优惠券成功");
-                            break
-                        case 3:
-                            magicJS.logger.info("- 领取年度大会员每月漫画福利券成功");
-                            break
-                        case 4:
-                            magicJS.logger.info("- 领取年度大会员每月会员购包邮券成功");
-                            break
-                        case 5:
-                            magicJS.logger.info("- 领取年度大会员每月漫画商城优惠券成功");
-                            break
-                        case 6:
-                            magicJS.logger.info("- 领取大会员每月装扮体验卡成功");
-                            break
-                        case 7:
-                            magicJS.logger.info("- 领取大会员每月课堂优惠券成功");
-                            break
-                        default:
-                            break
-                    }
-                } else {
-                    magicJS.logger.info("- 领取大会员每月福利失败, 福利编码为" + type);
-                    magicJS.logger.info("- 失败原因 " + body?.message);
-                    if (type === 1) {
-                        magicJS.notification.post("年度大会员月度福利", "B币券领取失败", "失败原因为: " + body?.message);
-                    }
-                    //其他福利没什么用,失败也无需单独通知
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `领取大会员月度福利异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function vipPrivilege(type) {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 领取大会员月度福利");
+//         const body = {
+//             csrf: config.cookie.bili_jct,
+//             type
+//         };
+//         const myRequest = {
+//             url: 'https://api.bilibili.com/x/vip/privilege/receive',
+//             headers: {
+//                 'Cookie': config.cookieStr
+//             },
+//             body: magicJS.objToQueryStr(body)
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.code === 0) {
+//                     switch (type) {
+//                         case 1:
+//                             magicJS.logger.info("- 领取年度大会员每月B币券成功");
+//                             magicJS.notification.post("年度大会员月度福利", "B币券", "🎉🎉🎉领取成功");
+//                             break
+//                         case 2:
+//                             magicJS.logger.info("- 领取年度大会员每月会员购优惠券成功");
+//                             break
+//                         case 3:
+//                             magicJS.logger.info("- 领取年度大会员每月漫画福利券成功");
+//                             break
+//                         case 4:
+//                             magicJS.logger.info("- 领取年度大会员每月会员购包邮券成功");
+//                             break
+//                         case 5:
+//                             magicJS.logger.info("- 领取年度大会员每月漫画商城优惠券成功");
+//                             break
+//                         case 6:
+//                             magicJS.logger.info("- 领取大会员每月装扮体验卡成功");
+//                             break
+//                         case 7:
+//                             magicJS.logger.info("- 领取大会员每月课堂优惠券成功");
+//                             break
+//                         default:
+//                             break
+//                     }
+//                 } else {
+//                     magicJS.logger.info("- 领取大会员每月福利失败, 福利编码为" + type);
+//                     magicJS.logger.info("- 失败原因 " + body?.message);
+//                     if (type === 1) {
+//                         magicJS.notification.post("年度大会员月度福利", "B币券领取失败", "失败原因为: " + body?.message);
+//                     }
+//                     //其他福利没什么用,失败也无需单独通知
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `领取大会员月度福利异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function Charge(mid, bp_num) {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### B币券自动充电");
-        const body = {
-            bp_num,
-            is_bp_remains_prior: true,
-            up_mid: mid,
-            otype: 'up',
-            oid: mid,
-            csrf: config.cookie.bili_jct
-        };
-        const myRequest = {
-            url: 'https://api.bilibili.com/x/ugcpay/web/v2/trade/elec/pay/quick',
-            headers: {
-                'Cookie': config.cookieStr
-            },
-            body: magicJS.objToQueryStr(body)
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.code === 0) {
-                    if (body?.data?.status === 4) {
-                        if (mid === config.user.mid) {
-                            magicJS.logger.info("- 为自己充电成功");
-                        } else {
-                            magicJS.logger.info(`- 为用户id为${mid}的用户充电成功`);
-                        }
-                    } else if (body?.data?.status === -4) {
-                        magicJS.logger.info("- 充电失败, B币不足");
-                    } else {
-                        magicJS.logger.info("- 充电失败");
-                        magicJS.logger.info("- 失败原因 " + body?.message);
-                    }
-                } else {
-                    magicJS.logger.info("- 充电失败");
-                    magicJS.logger.info("- 失败原因 " + body?.message);
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `充电异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function Charge(mid, bp_num) {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### B币券自动充电");
+//         const body = {
+//             bp_num,
+//             is_bp_remains_prior: true,
+//             up_mid: mid,
+//             otype: 'up',
+//             oid: mid,
+//             csrf: config.cookie.bili_jct
+//         };
+//         const myRequest = {
+//             url: 'https://api.bilibili.com/x/ugcpay/web/v2/trade/elec/pay/quick',
+//             headers: {
+//                 'Cookie': config.cookieStr
+//             },
+//             body: magicJS.objToQueryStr(body)
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.code === 0) {
+//                     if (body?.data?.status === 4) {
+//                         if (mid === config.user.mid) {
+//                             magicJS.logger.info("- 为自己充电成功");
+//                         } else {
+//                             magicJS.logger.info(`- 为用户id为${mid}的用户充电成功`);
+//                         }
+//                     } else if (body?.data?.status === -4) {
+//                         magicJS.logger.info("- 充电失败, B币不足");
+//                     } else {
+//                         magicJS.logger.info("- 充电失败");
+//                         magicJS.logger.info("- 失败原因 " + body?.message);
+//                     }
+//                 } else {
+//                     magicJS.logger.info("- 充电失败");
+//                     magicJS.logger.info("- 失败原因 " + body?.message);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `充电异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function me() {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 用户信息");
-        const myRequest = {
-            url: 'https://api.bilibili.com/x/web-interface/nav',
-            headers: {
-                "cookie": config.cookieStr
-            }
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.code) {
-                    magicJS.logger.info("- ❌❌获得用户信息失败(请更新cookie)");
-                    magicJS.data.write("bilibili_daily_bonus", null);
-                    resolve(false);
-                } else {
-                    magicJS.logger.info("- 🎉cookie有效任务即将开始🎉");
-                    config.user = body?.data;
-                    config.user.num = check("user") ? 1 : (config.user.num || 0) + 1;
-                    magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
+// async function me() {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 用户信息");
+//         const myRequest = {
+//             url: 'https://api.bilibili.com/x/web-interface/nav',
+//             headers: {
+//                 "cookie": config.cookieStr
+//             }
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.code) {
+//                     magicJS.logger.info("- ❌❌获得用户信息失败(请更新cookie)");
+//                     magicJS.data.write("bilibili_daily_bonus", null);
+//                     resolve(false);
+//                 } else {
+//                     magicJS.logger.info("- 🎉cookie有效任务即将开始🎉");
+//                     config.user = body?.data;
+//                     config.user.num = check("user") ? 1 : (config.user.num || 0) + 1;
+//                     magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
 
-                    config.user.mext_exp = config.user.level_info.next_exp - config.user.level_info.current_exp;
-                    config.user.next_day = Math.ceil(config.user.mext_exp / 15);
-                    config.user.v6_exp = 28800 - config.user.level_info.current_exp;
-                    config.user.v6_day = Math.ceil(config.user.v6_exp / 15);
+//                     config.user.mext_exp = config.user.level_info.next_exp - config.user.level_info.current_exp;
+//                     config.user.next_day = Math.ceil(config.user.mext_exp / 15);
+//                     config.user.v6_exp = 28800 - config.user.level_info.current_exp;
+//                     config.user.v6_day = Math.ceil(config.user.v6_exp / 15);
 
-                    if (config.user.vipStatus === 1) {
-                        magicJS.logger.log("- 💖尊贵的大会员用户💖");
-                    }
-                    magicJS.logger.log("- 用户名称: " + config.user.uname);
-                    magicJS.logger.log("- 用户ID: " + config.user.mid);
-                    magicJS.logger.log("- 用户硬币: " + Math.floor(config.user.money));
-                    magicJS.logger.log("- 用户B币: " + config.user.wallet.bcoin_balance);
-                    magicJS.logger.log("- 用户等级: " + config.user.level_info.current_level);
-                    magicJS.logger.log(
-                        `- 当前经验: ${config.user.level_info.current_exp}/${config.user.level_info.next_exp}`
-                    );
-                    magicJS.logger.log(`- 升级还需经验: ${config.user.mext_exp}`);
-                    magicJS.logger.log(
-                        `- 距离下级还需: ${config.user.next_day}天(登录 观看 分享)`
-                    );
-                    magicJS.logger.log(
-                        `- 距离满级还需: ${Math.max(0, config.user.v6_day)}天(登录 观看 分享)`
-                    );
-                    magicJS.logger.log(`- 剩余硬币最多可投: ${Math.floor((config.user.money)/5)}天`);
-                    magicJS.logger.log(
-                        "- 距离满级最快还需: " +
-                        Math.max(0, Math.ceil(config.user.v6_exp / 65)) +
-                            "天(日常 + 投币*5)"
-                    );
-                    resolve(true);
-                }
-            } catch (e) {
-                magicJS.logger.error(JSON.stringify(e));
-                resolve();
-            }
-        }, reason => {
-            magicJS.notification.post(magicJS.scriptName, "- 获取用户信息失败", magicJS.toStr(reason));
-            resolve(false);
-        }).catch(err => {
-            const msg = `用户信息异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+//                     if (config.user.vipStatus === 1) {
+//                         magicJS.logger.log("- 💖尊贵的大会员用户💖");
+//                     }
+//                     magicJS.logger.log("- 用户名称: " + config.user.uname);
+//                     magicJS.logger.log("- 用户ID: " + config.user.mid);
+//                     magicJS.logger.log("- 用户硬币: " + Math.floor(config.user.money));
+//                     magicJS.logger.log("- 用户B币: " + config.user.wallet.bcoin_balance);
+//                     magicJS.logger.log("- 用户等级: " + config.user.level_info.current_level);
+//                     magicJS.logger.log(
+//                         `- 当前经验: ${config.user.level_info.current_exp}/${config.user.level_info.next_exp}`
+//                     );
+//                     magicJS.logger.log(`- 升级还需经验: ${config.user.mext_exp}`);
+//                     magicJS.logger.log(
+//                         `- 距离下级还需: ${config.user.next_day}天(登录 观看 分享)`
+//                     );
+//                     magicJS.logger.log(
+//                         `- 距离满级还需: ${Math.max(0, config.user.v6_day)}天(登录 观看 分享)`
+//                     );
+//                     magicJS.logger.log(`- 剩余硬币最多可投: ${Math.floor((config.user.money)/5)}天`);
+//                     magicJS.logger.log(
+//                         "- 距离满级最快还需: " +
+//                         Math.max(0, Math.ceil(config.user.v6_exp / 65)) +
+//                             "天(日常 + 投币*5)"
+//                     );
+//                     resolve(true);
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(JSON.stringify(e));
+//                 resolve();
+//             }
+//         }, reason => {
+//             magicJS.notification.post(magicJS.scriptName, "- 获取用户信息失败", magicJS.toStr(reason));
+//             resolve(false);
+//         }).catch(err => {
+//             const msg = `用户信息异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function queryStatus() {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 检查任务进行状况");
-        const myRequest = {
-            url: "https://api.bilibili.com/x/member/web/exp/reward",
-            headers: {
-                "cookie": config.cookieStr
-            }
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.code === 0) {
-                    if (body.data.login) {
-                        magicJS.logger.info("- 今日已登录");
-                        config.user.num = (config.user.num === 0 ? 1 : config.user.num);
-                        if (!config['user'].hasOwnProperty("time")) {
-                            config.user.time = startTime;
-                        }
-                    } else {
-                        magicJS.logger.info("! 今日尚未登录");
-                        config.user.num = 0;
-                    }
-                    if (body.data.watch){
-                        magicJS.logger.info("- 今日已观看");
-                        config.watch.num = (config.watch.num === 0 || typeof config.watch.num === 'undefined' ? 1 : config.watch.num);
-                        if (!config['watch'].hasOwnProperty("time")) {
-                            config.watch.time = startTime;
-                        }
-                    } else {
-                        magicJS.logger.info("! 今日尚未观看");
-                        config.watch.num = 0;
-                    }
-                    if (body.data.share){
-                        magicJS.logger.info("- 今日已分享");
-                        config.share.num = (config.share.num === 0 || typeof config.share.num === 'undefined' ? 1 : config.share.num);
-                        if (!config['share'].hasOwnProperty("time")) {
-                            config.share.time = startTime;
-                        }
-                    } else {
-                        magicJS.logger.info("! 今日尚未分享");
-                        config.share.num = 0;
-                    }
-                    if (body.data.coins === 50){
-                        magicJS.logger.info("- 今日已投币")
-                        if (!config['coins'].hasOwnProperty("time")) {
-                            config.coins.time = startTime;
-                        } else {
-                            if (format(new Date().toDateString()) > config.coins.time) {
-                                config.coins.time = startTime;
-                            }
-                        }
-                    } else if ((body.data.coins / 10) >= real_times) {
-                        config.coins.time = startTime;
-                        magicJS.logger.info("- 已完成用户设置的投币量");
-                    } else if (config.user.money <= 5) {
-                        magicJS.logger.info("! 硬币数不足");
-                    } else {
-                        magicJS.logger.info("! 今日投币未完成");
-                    }
-                    config.coins.num = body.data.coins;
-                    magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
-                } else {
-                    magicJS.logger.info("- 查询失败");
-                    magicJS.logger.info("- 失败原因 " + body?.message);;
-                }
-            } catch (e) {
-                magicJS.logger.error(e);
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `检查任务进行状况异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function queryStatus() {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 检查任务进行状况");
+//         const myRequest = {
+//             url: "https://api.bilibili.com/x/member/web/exp/reward",
+//             headers: {
+//                 "cookie": config.cookieStr
+//             }
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.code === 0) {
+//                     if (body.data.login) {
+//                         magicJS.logger.info("- 今日已登录");
+//                         config.user.num = (config.user.num === 0 ? 1 : config.user.num);
+//                         if (!config['user'].hasOwnProperty("time")) {
+//                             config.user.time = startTime;
+//                         }
+//                     } else {
+//                         magicJS.logger.info("! 今日尚未登录");
+//                         config.user.num = 0;
+//                     }
+//                     if (body.data.watch){
+//                         magicJS.logger.info("- 今日已观看");
+//                         config.watch.num = (config.watch.num === 0 || typeof config.watch.num === 'undefined' ? 1 : config.watch.num);
+//                         if (!config['watch'].hasOwnProperty("time")) {
+//                             config.watch.time = startTime;
+//                         }
+//                     } else {
+//                         magicJS.logger.info("! 今日尚未观看");
+//                         config.watch.num = 0;
+//                     }
+//                     if (body.data.share){
+//                         magicJS.logger.info("- 今日已分享");
+//                         config.share.num = (config.share.num === 0 || typeof config.share.num === 'undefined' ? 1 : config.share.num);
+//                         if (!config['share'].hasOwnProperty("time")) {
+//                             config.share.time = startTime;
+//                         }
+//                     } else {
+//                         magicJS.logger.info("! 今日尚未分享");
+//                         config.share.num = 0;
+//                     }
+//                     if (body.data.coins === 50){
+//                         magicJS.logger.info("- 今日已投币")
+//                         if (!config['coins'].hasOwnProperty("time")) {
+//                             config.coins.time = startTime;
+//                         } else {
+//                             if (format(new Date().toDateString()) > config.coins.time) {
+//                                 config.coins.time = startTime;
+//                             }
+//                         }
+//                     } else if ((body.data.coins / 10) >= real_times) {
+//                         config.coins.time = startTime;
+//                         magicJS.logger.info("- 已完成用户设置的投币量");
+//                     } else if (config.user.money <= 5) {
+//                         magicJS.logger.info("! 硬币数不足");
+//                     } else {
+//                         magicJS.logger.info("! 今日投币未完成");
+//                     }
+//                     config.coins.num = body.data.coins;
+//                     magicJS.data.write("bilibili_daily_bonus", magicJS.toStr(config));
+//                 } else {
+//                     magicJS.logger.info("- 查询失败");
+//                     magicJS.logger.info("- 失败原因 " + body?.message);;
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(e);
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `检查任务进行状况异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
-async function dynamic() {
-    return new Promise((resolve, reject) => {
-        magicJS.logger.info("#### 获取首页视频");
-        const myRequest = {
-            url: `https://api.vc.bilibili.com/dynamic_svr/v1/dynamic_svr/dynamic_new?uid=${config.cookie.DedeUserID}&type_list=8&from=&platform=web`,
-            headers: {
-                "cookie": config.cookieStr
-            }
-        };
-        magicJS.http.get(myRequest).then(response => {
-            try {
-                const body = response.body;
-                if (body?.data?.cards) {
-                    cards = body.data.cards;
-                    const { user, watch, share } = config;
-                    user.time = watch.time = share.time = startTime;
-                    magicJS.logger.info("- 获取视频动态成功");
-                } else {
-                    magicJS.logger.info("- 获取视频动态失败");
-                }
-            } catch (e) {
-                magicJS.logger.error(JSON.stringify(e));
-            }
-            resolve();
-        }).catch(err => {
-            const msg = `获取首页视频异常\n${JSON.stringify(err)}`;
-            magicJS.logger.error(msg);
-            reject();
-        });
-    });
-}
+// async function dynamic() {
+//     return new Promise((resolve, reject) => {
+//         magicJS.logger.info("#### 获取首页视频");
+//         const myRequest = {
+//             url: `https://api.vc.bilibili.com/dynamic_svr/v1/dynamic_svr/dynamic_new?uid=${config.cookie.DedeUserID}&type_list=8&from=&platform=web`,
+//             headers: {
+//                 "cookie": config.cookieStr
+//             }
+//         };
+//         magicJS.http.get(myRequest).then(response => {
+//             try {
+//                 const body = response.body;
+//                 if (body?.data?.cards) {
+//                     cards = body.data.cards;
+//                     const { user, watch, share } = config;
+//                     user.time = watch.time = share.time = startTime;
+//                     magicJS.logger.info("- 获取视频动态成功");
+//                 } else {
+//                     magicJS.logger.info("- 获取视频动态失败");
+//                 }
+//             } catch (e) {
+//                 magicJS.logger.error(JSON.stringify(e));
+//             }
+//             resolve();
+//         }).catch(err => {
+//             const msg = `获取首页视频异常\n${JSON.stringify(err)}`;
+//             magicJS.logger.error(msg);
+//             reject();
+//         });
+//     });
+// }
 
 // Wbi签名获取
 function getWbiSigns(requestParams) {