mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
fix
This commit is contained in:
parent
f685efd942
commit
a9798bb691
@ -30,6 +30,16 @@ class GsCfg {
|
|||||||
fs.readFileSync(path + name + ".yaml", 'utf8')
|
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(){
|
async getMasterQQ(){
|
||||||
let qq;
|
let qq;
|
||||||
if(isV3){
|
if(isV3){
|
||||||
|
@ -87,6 +87,7 @@ export default class user {
|
|||||||
async multiSign(forumData) {
|
async multiSign(forumData) {
|
||||||
let upData = [],
|
let upData = [],
|
||||||
message = '';
|
message = '';
|
||||||
|
await this.getCookie(this.e);
|
||||||
for (let forum of forumData) {
|
for (let forum of forumData) {
|
||||||
if (!(this.configSign.signlist.includes(forum.name))) {
|
if (!(this.configSign.signlist.includes(forum.name))) {
|
||||||
continue;
|
continue;
|
||||||
@ -94,7 +95,7 @@ export default class user {
|
|||||||
let res
|
let res
|
||||||
try {
|
try {
|
||||||
message += `**${forum.name}**\n`
|
message += `**${forum.name}**\n`
|
||||||
res = await this.getData("userGameInfo", forum )
|
res = await this.getData("userGameInfo", forum,false)
|
||||||
await utils.sleepAsync(3000) //等几毫秒免得请求太频繁了
|
await utils.sleepAsync(3000) //等几毫秒免得请求太频繁了
|
||||||
if (res?.data?.list?.length === 0 || !res?.data?.list) {
|
if (res?.data?.list?.length === 0 || !res?.data?.list) {
|
||||||
message += `签到: 未绑定${forum.name}信息\n`;
|
message += `签到: 未绑定${forum.name}信息\n`;
|
||||||
|
Loading…
Reference in New Issue
Block a user