Skip to content

Commit

Permalink
Update library_task.js
Browse files Browse the repository at this point in the history
  • Loading branch information
hex-ci committed Nov 21, 2023
1 parent 0320dfe commit 147a910
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library_task.js
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,8 @@ class SmzdmTaskBot extends SmzdmBot {

if (!isSuccess) {
this.$env.log(`获取文章信息失败!${response}`);
return null;

return false;
}

// 通过正则提取页面中的 channel_id
Expand All @@ -1437,7 +1438,8 @@ class SmzdmTaskBot extends SmzdmBot {

if (!matchRet) {
this.$env.log(`获取文章信息失败!${response}`);
return null;

return false;
}

return matchRet[1];
Expand Down

0 comments on commit 147a910

Please sign in to comment.