koishi-plugin-weibo-post-monitor 1.0.1-beta.5 → 1.0.1-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +4 -0
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -485,13 +485,17 @@ async function getDetailMessage(wb_url) {
485
485
  timeout: 1e4
486
486
  });
487
487
  const responseData = response.data;
488
+ logger.info("responseData = " + JSON.stringify(responseData));
488
489
  if (!responseData || responseData.ok !== 1 || !responseData.data) {
490
+ logger.error("获取微博response返回报错: " + JSON.stringify(responseData));
489
491
  return null;
490
492
  }
491
493
  const longTextContent = responseData.data.longTextContent;
492
494
  if (!longTextContent) {
495
+ logger.error("获取微博返回的longTextContent为空");
493
496
  return null;
494
497
  }
498
+ logger.info("longTextContent = " + JSON.stringify(responseData));
495
499
  const plainText = stripHtmlTags(longTextContent);
496
500
  return plainText;
497
501
  } catch (error) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-weibo-post-monitor",
3
3
  "description": "微博帖子更新推送插件,用于获取指定微博用户的最新帖子推送到指定群聊,参考代码https://github.com/moehuhu/weibo-monitor",
4
- "version": "1.0.1-beta.5",
4
+ "version": "1.0.1-beta.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [