@iflyrpa/actions 1.2.16-beta.5 → 1.2.16-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.
- package/dist/bundle.js +26 -15
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -14255,7 +14255,18 @@ var __webpack_exports__ = {};
|
|
|
14255
14255
|
await ensureFile(savePath);
|
|
14256
14256
|
return new Promise((resolve, reject)=>{
|
|
14257
14257
|
external_node_https_namespaceObject.get(url, (response)=>{
|
|
14258
|
-
if (
|
|
14258
|
+
if (301 === response.statusCode || 302 === response.statusCode) {
|
|
14259
|
+
const redirectUrl = response.headers.location;
|
|
14260
|
+
if (redirectUrl) external_node_https_namespaceObject.get(redirectUrl, (res)=>{
|
|
14261
|
+
const fileStream = external_node_fs_namespaceObject.createWriteStream(savePath);
|
|
14262
|
+
res.pipe(fileStream);
|
|
14263
|
+
fileStream.on('finish', ()=>{
|
|
14264
|
+
fileStream.close();
|
|
14265
|
+
console.log(`${response.statusCode} 下载完成,文件已保存至:`, savePath);
|
|
14266
|
+
resolve(savePath);
|
|
14267
|
+
});
|
|
14268
|
+
});
|
|
14269
|
+
} else if (200 === response.statusCode) {
|
|
14259
14270
|
const fileStream = external_node_fs_namespaceObject.createWriteStream(savePath);
|
|
14260
14271
|
response.pipe(fileStream);
|
|
14261
14272
|
fileStream.on("finish", ()=>{
|
|
@@ -15998,19 +16009,6 @@ var __webpack_exports__ = {};
|
|
|
15998
16009
|
if (parsed.publish_list.length < currentPageSize) break;
|
|
15999
16010
|
nextPage++;
|
|
16000
16011
|
}
|
|
16001
|
-
articleCell = articlesInfo.publish_list.map((item)=>({
|
|
16002
|
-
title: item.publish_info.appmsg_info[0].title,
|
|
16003
|
-
imageUrl: item.publish_info.appmsg_info[0].cover,
|
|
16004
|
-
createTime: item.publish_info.appmsg_info[0].line_info.send_time,
|
|
16005
|
-
redirectUrl: item.publish_info.appmsg_info[0].content_url,
|
|
16006
|
-
readNum: item.publish_info.appmsg_info[0].read_num,
|
|
16007
|
-
likeNum: item.publish_info.appmsg_info[0].old_like_num,
|
|
16008
|
-
shareNum: item.publish_info.appmsg_info[0].share_num,
|
|
16009
|
-
recommendNum: item.publish_info.appmsg_info[0].like_num,
|
|
16010
|
-
...showOriginalData ? {
|
|
16011
|
-
originalData: item
|
|
16012
|
-
} : {}
|
|
16013
|
-
}));
|
|
16014
16012
|
}
|
|
16015
16013
|
let nextPage = false;
|
|
16016
16014
|
if (onlySuccess) {
|
|
@@ -16060,6 +16058,19 @@ var __webpack_exports__ = {};
|
|
|
16060
16058
|
}
|
|
16061
16059
|
}, "微信文章文章获取成功");
|
|
16062
16060
|
}
|
|
16061
|
+
articleCell = articlesInfo.publish_list.map((item)=>({
|
|
16062
|
+
title: item.publish_info.appmsg_info[0].title,
|
|
16063
|
+
imageUrl: item.publish_info.appmsg_info[0].cover,
|
|
16064
|
+
createTime: item.publish_info.appmsg_info[0].line_info.send_time,
|
|
16065
|
+
redirectUrl: item.publish_info.appmsg_info[0].content_url,
|
|
16066
|
+
readNum: item.publish_info.appmsg_info[0].read_num,
|
|
16067
|
+
likeNum: item.publish_info.appmsg_info[0].old_like_num,
|
|
16068
|
+
shareNum: item.publish_info.appmsg_info[0].share_num,
|
|
16069
|
+
recommendNum: item.publish_info.appmsg_info[0].like_num,
|
|
16070
|
+
...showOriginalData ? {
|
|
16071
|
+
originalData: item
|
|
16072
|
+
} : {}
|
|
16073
|
+
}));
|
|
16063
16074
|
return success({
|
|
16064
16075
|
articleCell
|
|
16065
16076
|
}, "微信文章文章获取成功");
|
|
@@ -18235,7 +18246,7 @@ var __webpack_exports__ = {};
|
|
|
18235
18246
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
18236
18247
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
18237
18248
|
};
|
|
18238
|
-
var package_namespaceObject = JSON.parse('{"i8":"1.2.16-beta.
|
|
18249
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.16-beta.6"}');
|
|
18239
18250
|
class Action {
|
|
18240
18251
|
constructor(task){
|
|
18241
18252
|
this.task = task;
|