@iflyrpa/actions 1.1.32 → 1.1.33
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 +1 -9
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +1 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -13528,7 +13528,6 @@ var __webpack_exports__ = {};
|
|
|
13528
13528
|
}
|
|
13529
13529
|
};
|
|
13530
13530
|
const searchXiaohongshuLocation = async (task, params)=>{
|
|
13531
|
-
task.logger.info("搜索小红书地址");
|
|
13532
13531
|
const http = new Http({
|
|
13533
13532
|
headers: {
|
|
13534
13533
|
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
@@ -13577,7 +13576,6 @@ var __webpack_exports__ = {};
|
|
|
13577
13576
|
return error || ("draft" === saveType ? "文章同步异常,请稍后重试。" : "文章发布异常,请稍后重试。");
|
|
13578
13577
|
};
|
|
13579
13578
|
const mock_mockAction = async (task, params)=>{
|
|
13580
|
-
task.logger.info("开始头条 MockApi 发布");
|
|
13581
13579
|
const { toutiaoSingleCover, toutiaoMultCover, toutiaoCoverType, toutiaoOriginal } = params.settingInfo;
|
|
13582
13580
|
const tmpCachePath = task.getTmpPath();
|
|
13583
13581
|
const http = new Http({
|
|
@@ -13726,7 +13724,6 @@ var __webpack_exports__ = {};
|
|
|
13726
13724
|
return success(publishResult.data.pgc_id);
|
|
13727
13725
|
};
|
|
13728
13726
|
const rpa_rpaAction = async (task, params)=>{
|
|
13729
|
-
task.logger.info("开始头条 RPA 发布");
|
|
13730
13727
|
const tmpCachePath = task.getTmpPath();
|
|
13731
13728
|
const commonCookies = {
|
|
13732
13729
|
path: "/",
|
|
@@ -13861,7 +13858,6 @@ var __webpack_exports__ = {};
|
|
|
13861
13858
|
};
|
|
13862
13859
|
const getAddTypeValue = (toutiaoAd)=>"yes" === toutiaoAd ? 3 : 2;
|
|
13863
13860
|
const toutiaoPublish = async (task, params)=>{
|
|
13864
|
-
task.logger.info("开始头条发布");
|
|
13865
13861
|
if ("rpa" === params.actionType) return rpa_rpaAction(task, params);
|
|
13866
13862
|
if ("mockApi" === params.actionType) return mock_mockAction(task, params);
|
|
13867
13863
|
return executeAction(mock_mockAction, rpa_rpaAction)(task, params);
|
|
@@ -14003,7 +13999,6 @@ var __webpack_exports__ = {};
|
|
|
14003
13999
|
return success("");
|
|
14004
14000
|
};
|
|
14005
14001
|
const weitoutiaoPublish = async (task, params)=>{
|
|
14006
|
-
task.logger.info("开始微头条发布");
|
|
14007
14002
|
if ("rpa" === params.actionType) return weitoutiaoPublish_rpa_rpaAction(task, params);
|
|
14008
14003
|
if ("mockApi" === params.actionType) return weitoutiaoPublish_mock_mockAction(task, params);
|
|
14009
14004
|
return executeAction(weitoutiaoPublish_mock_mockAction, weitoutiaoPublish_rpa_rpaAction)(task, params);
|
|
@@ -14839,7 +14834,6 @@ var __webpack_exports__ = {};
|
|
|
14839
14834
|
return success("");
|
|
14840
14835
|
};
|
|
14841
14836
|
const weixinmpPublish = async (task, params)=>{
|
|
14842
|
-
task.logger.info("开始小绿书发布");
|
|
14843
14837
|
if ("rpa" === params.actionType) return weixinmpPublish_rpa_rpaAction(task, params);
|
|
14844
14838
|
if ("mockApi" === params.actionType) return weixinmpPublish_mock_mockAction(task, params);
|
|
14845
14839
|
return executeAction(weixinmpPublish_mock_mockAction, weixinmpPublish_rpa_rpaAction)(task, params);
|
|
@@ -15221,13 +15215,12 @@ var __webpack_exports__ = {};
|
|
|
15221
15215
|
return success(response);
|
|
15222
15216
|
};
|
|
15223
15217
|
const xiaohongshuPublish = async (task, params)=>{
|
|
15224
|
-
task.logger.info("开始小红书发布");
|
|
15225
15218
|
if ("rpa" === params.actionType) return xiaohongshuPublish_rpa_rpaAction(task, params);
|
|
15226
15219
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
15227
15220
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
15228
15221
|
};
|
|
15229
15222
|
var package_namespaceObject = {
|
|
15230
|
-
i8: "1.1.
|
|
15223
|
+
i8: "1.1.32"
|
|
15231
15224
|
};
|
|
15232
15225
|
class Action {
|
|
15233
15226
|
constructor(task){
|
|
@@ -15235,7 +15228,6 @@ var __webpack_exports__ = {};
|
|
|
15235
15228
|
}
|
|
15236
15229
|
async bindTask(func, params) {
|
|
15237
15230
|
let responseData;
|
|
15238
|
-
this.task.logger.info(`${func.name} start`);
|
|
15239
15231
|
if ("object" == typeof params && null !== params) params.cookies = params?.cookies ?? [];
|
|
15240
15232
|
try {
|
|
15241
15233
|
responseData = await func(this.task, params);
|