2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-22 19:10:53 +08:00
This commit is contained in:
Ctrlcvs 2022-10-24 08:16:27 +08:00
parent f685efd942
commit a9798bb691
2 changed files with 12 additions and 1 deletions

View File

@ -30,6 +30,16 @@ class GsCfg {
fs.readFileSync(path + name + ".yaml", 'utf8')
)
}
cpCfg (app, name) {
if (!fs.existsSync(`./plugins/${plugin}/config`)) {
fs.mkdirSync(`./plugins/${plugin}/config`)
}
let set = `./plugins/${plugin}/config/${name}.yaml`
if (!fs.existsSync(set)) {
fs.copyFileSync(`./plugins/${plugin}/defSet/${app}/${name}.yaml`, set)
}
}
async getMasterQQ(){
let qq;
if(isV3){

View File

@ -87,6 +87,7 @@ export default class user {
async multiSign(forumData) {
let upData = [],
message = '';
await this.getCookie(this.e);
for (let forum of forumData) {
if (!(this.configSign.signlist.includes(forum.name))) {
continue;
@ -94,7 +95,7 @@ export default class user {
let res
try {
message += `**${forum.name}**\n`
res = await this.getData("userGameInfo", forum )
res = await this.getData("userGameInfo", forum,false)
await utils.sleepAsync(3000) //等几毫秒免得请求太频繁了
if (res?.data?.list?.length === 0 || !res?.data?.list) {
message += `签到: 未绑定${forum.name}信息\n`;