Pre Merge pull request !139 from Anno_Lawl/N/A
This commit is contained in:
commit
ff54aaac49
|
@ -110,7 +110,17 @@ export class exchange extends plugin {
|
|||
}
|
||||
|
||||
for (const p of ret.data.list) {
|
||||
const post = p.post.post;
|
||||
//新增 #原神兑换码 异常捕捉,防止存在多个活动时因为异常报错导致无法继续处理或者输出后续内容
|
||||
let post;
|
||||
try{
|
||||
const posts = p.post.post;
|
||||
post = posts;
|
||||
}catch (e) {
|
||||
logger.error(e);
|
||||
post = null;
|
||||
}
|
||||
//end 2024-1-4
|
||||
|
||||
if (!post) {
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue