fix: includes is undefined

This commit is contained in:
千奈千祁 2024-04-20 13:54:15 +08:00
parent faf2e05741
commit 68922b06ce
1 changed files with 2 additions and 2 deletions

View File

@ -121,8 +121,8 @@ export class mysNews extends plugin {
continue
}
for (let a of ActivityList) {
if((!pushGroupList.srActivityPush || !pushGroupList.srActivityPush[item].includes(redisapgl.GroupList[0])) && a.game === `sr`) continue
if((!pushGroupList.gsActivityPush || !pushGroupList.gsActivityPush[item].includes(redisapgl.GroupList[0])) && a.game === `gs`) continue
if((!pushGroupList.srActivityPush || !pushGroupList.srActivityPush[item] || !pushGroupList.srActivityPush[item].includes(redisapgl.GroupList[0])) && a.game === `sr`) continue
if((!pushGroupList.gsActivityPush || !pushGroupList.gsActivityPush[item] || !pushGroupList.gsActivityPush[item].includes(redisapgl.GroupList[0])) && a.game === `gs`) continue
let pushGame
if(a.game === `sr`) pushGame = `星铁`
if(a.game === `gs`) pushGame = `原神`