修复了开启铁道公告推送会覆盖原神公告推送的意外错误
Signed-off-by: Rainbow <9510289+rainbowwarmth@user.noreply.gitee.com>
This commit is contained in:
parent
aa5d9ab1df
commit
1dd220e505
|
@ -60,12 +60,20 @@ export class mysNews extends plugin {
|
|||
this.file = './plugins/genshin/config/mys.pushNews.yaml'
|
||||
|
||||
/** 定时任务 */
|
||||
this.task = {
|
||||
cron: gsCfg.getConfig('mys', 'pushNews').pushTime,
|
||||
name: '米游社公告推送任务',
|
||||
fnc: () => this.mysNewsTask(),
|
||||
log: false
|
||||
}
|
||||
this.task = [
|
||||
{
|
||||
cron: gsCfg.getConfig('mys', 'pushNews').pushTime,
|
||||
name: '米游社公告推送任务',
|
||||
fnc: () => this.mysNewsTask(),
|
||||
log: false
|
||||
},
|
||||
{
|
||||
cron: gsCfg.getConfig('mys', 'pushNews').pushTime,
|
||||
name: '崩坏星穹铁道公告推送任务',
|
||||
fnc: () => this.srmysNewsTask(),
|
||||
log: false
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
async init () {
|
||||
|
@ -87,7 +95,7 @@ export class mysNews extends plugin {
|
|||
}
|
||||
|
||||
async mysNewsTask () {
|
||||
let mysNews = new srNews(this.e)
|
||||
let mysNews = new MysNews(this.e)
|
||||
await mysNews.mysNewsTask()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue