@iflyrpa/actions 4.0.4-beta.6 → 4.0.4
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.
- package/dist/bundle.js +5 -9
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +5 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e1cb75dd-cee5-50ef-9ae8-80ab2cccd402")}catch(e){}}();
|
|
3
3
|
var __webpack_modules__ = {
|
|
4
4
|
"./src/utils/XhsXsCommonEnc.js": function(module) {
|
|
5
5
|
var encrypt_lookup = [
|
|
@@ -4402,7 +4402,9 @@ var __webpack_exports__ = {};
|
|
|
4402
4402
|
});
|
|
4403
4403
|
const package_json_namespaceObject = require("@iflyrpa/share/package.json");
|
|
4404
4404
|
var package_json_default = /*#__PURE__*/ __webpack_require__.n(package_json_namespaceObject);
|
|
4405
|
-
var package_namespaceObject =
|
|
4405
|
+
var package_namespaceObject = {
|
|
4406
|
+
i8: "4.0.4"
|
|
4407
|
+
};
|
|
4406
4408
|
const share_namespaceObject = require("@iflyrpa/share");
|
|
4407
4409
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
4408
4410
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
@@ -15464,7 +15466,6 @@ var __webpack_exports__ = {};
|
|
|
15464
15466
|
fansNum = toNum(user.follower_count);
|
|
15465
15467
|
followingNum = toNum(user.following_count);
|
|
15466
15468
|
favedNum = toNum(user.total_favorited);
|
|
15467
|
-
_task.logger.info(`提取用户数据 - 昵称: ${user.nickname}, 粉丝: ${fansNum}, 关注: ${followingNum}, 获赞: ${favedNum}, 作品: ${user.aweme_count}`);
|
|
15468
15469
|
} else _task.logger.warn(`用户信息接口返回异常: status_code=${userProfile?.status_code}, msg=${userProfile?.status_msg}`);
|
|
15469
15470
|
const ov = overview?.data;
|
|
15470
15471
|
const douyinData = {
|
|
@@ -15596,7 +15597,6 @@ var __webpack_exports__ = {};
|
|
|
15596
15597
|
playNumYesterday = Number.parseInt(data.browse?.[1] || "0", 10) || 0;
|
|
15597
15598
|
likeNumYesterday = Number.parseInt(data.like?.[1] || "0", 10) || 0;
|
|
15598
15599
|
commentNumYesterday = Number.parseInt(data.comment?.[1] || "0", 10) || 0;
|
|
15599
|
-
_task.logger.info(`视频号昨日数据提取成功 - 净增关注:${fansNumYesterday}, 播放:${playNumYesterday}, 喜欢:${likeNumYesterday}, 评论:${commentNumYesterday}`);
|
|
15600
15600
|
}
|
|
15601
15601
|
} catch (error) {
|
|
15602
15602
|
const errMsg = error instanceof Error ? error.message : String(error);
|
|
@@ -16235,7 +16235,6 @@ var __webpack_exports__ = {};
|
|
|
16235
16235
|
allPosts.push(...posts);
|
|
16236
16236
|
continueFlag = response.data?.continueFlag ?? false;
|
|
16237
16237
|
rawKeyBuff = response.data?.lastBuff || "";
|
|
16238
|
-
_task.logger.info(`获取${11 === userpageType ? "视频" : "图文"}第${currentPage}页,本页${posts.length}条,累计${allPosts.length}条,continueFlag=${continueFlag}`);
|
|
16239
16238
|
currentPage++;
|
|
16240
16239
|
if (currentPage > 100) {
|
|
16241
16240
|
_task.logger.warn("分页超过100页,停止请求");
|
|
@@ -16290,7 +16289,6 @@ var __webpack_exports__ = {};
|
|
|
16290
16289
|
if (needVideo) try {
|
|
16291
16290
|
const videoPageUrl = "https://channels.weixin.qq.com/micro/content/post/list";
|
|
16292
16291
|
const { posts, totalCount } = await fetchAllPosts(11, videoPageUrl);
|
|
16293
|
-
_task.logger.info(`视频号视频获取响应:共${posts.length}条,totalCount=${totalCount}`);
|
|
16294
16292
|
const videoArticles = posts.filter((item)=>item.createTime || item.create_time).map((item)=>mapPost(item, "video"));
|
|
16295
16293
|
allArticles.push(...videoArticles);
|
|
16296
16294
|
combinedTotal += totalCount || videoArticles.length;
|
|
@@ -16302,7 +16300,6 @@ var __webpack_exports__ = {};
|
|
|
16302
16300
|
if (needArticle) try {
|
|
16303
16301
|
const articlePageUrl = "https://channels.weixin.qq.com/micro/content/post/finderNewLifePostList";
|
|
16304
16302
|
const { posts, totalCount } = await fetchAllPosts(10, articlePageUrl);
|
|
16305
|
-
_task.logger.info(`视频号图文获取响应:共${posts.length}条,totalCount=${totalCount}`);
|
|
16306
16303
|
const articleArticles = posts.filter((item)=>item.createTime || item.create_time).map((item)=>mapPost(item, "article"));
|
|
16307
16304
|
allArticles.push(...articleArticles);
|
|
16308
16305
|
combinedTotal += totalCount || articleArticles.length;
|
|
@@ -16315,7 +16312,6 @@ var __webpack_exports__ = {};
|
|
|
16315
16312
|
const total = allArticles.length;
|
|
16316
16313
|
const start = (pageNum - 1) * pageSize;
|
|
16317
16314
|
const pageItems = allArticles.slice(start, start + pageSize);
|
|
16318
|
-
_task.logger.info(`视频号数据获取成功,合计${total}条,第${pageNum}页返回${pageItems.length}条`);
|
|
16319
16315
|
return (0, share_namespaceObject.success)({
|
|
16320
16316
|
articleCell: pageItems,
|
|
16321
16317
|
pagination: {
|
|
@@ -25680,4 +25676,4 @@ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_targe
|
|
|
25680
25676
|
});
|
|
25681
25677
|
|
|
25682
25678
|
//# sourceMappingURL=index.js.map
|
|
25683
|
-
//# debugId=
|
|
25679
|
+
//# debugId=e1cb75dd-cee5-50ef-9ae8-80ab2cccd402
|