@iflyrpa/actions 1.2.24-beta.2 → 1.2.24-beta.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 +16 -7
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +16 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2941,6 +2941,15 @@ class Http {
|
|
|
2941
2941
|
httpsAgent: agent
|
|
2942
2942
|
} : {}
|
|
2943
2943
|
});
|
|
2944
|
+
let proxyInfo;
|
|
2945
|
+
if (agent && agent.proxy) {
|
|
2946
|
+
const proxy = agent.proxy;
|
|
2947
|
+
proxyInfo = {
|
|
2948
|
+
host: proxy.host,
|
|
2949
|
+
port: proxy.port
|
|
2950
|
+
};
|
|
2951
|
+
}
|
|
2952
|
+
if (this.adr && agent) response.data.proxyInfo = proxyInfo;
|
|
2944
2953
|
return response.data;
|
|
2945
2954
|
} catch (error) {
|
|
2946
2955
|
return Promise.reject(Http.handleApiError(error));
|
|
@@ -3304,7 +3313,7 @@ const mockAction = async (task, params)=>{
|
|
|
3304
3313
|
},
|
|
3305
3314
|
defaultErrorMsg: isDraft ? "文章同步出现异常,请稍后重试。" : "文章发布出现异常,请稍后重试。"
|
|
3306
3315
|
});
|
|
3307
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(res.ret.article_id,
|
|
3316
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(res.ret.article_id, `文章发布成功!${JSON.stringify(res.proxyInfo)}`);
|
|
3308
3317
|
};
|
|
3309
3318
|
const rpaAction = async (task, params)=>{
|
|
3310
3319
|
const tmpCachePath = task.getTmpPath();
|
|
@@ -4338,7 +4347,7 @@ const mock_mockAction = async (task, params)=>{
|
|
|
4338
4347
|
headers
|
|
4339
4348
|
}, params.proxyLoc);
|
|
4340
4349
|
const publishResult = await proxyHttp.api(publishOption);
|
|
4341
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(publishResult.data.pgc_id);
|
|
4350
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(publishResult.data.pgc_id, `文章发布成功!${JSON.stringify(publishResult.proxyInfo)}`);
|
|
4342
4351
|
};
|
|
4343
4352
|
const rpa_GenAB = __webpack_require__("./src/utils/ttABEncrypt.js");
|
|
4344
4353
|
const rpa_rpaAction = async (task, params)=>{
|
|
@@ -6196,10 +6205,10 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
6196
6205
|
};
|
|
6197
6206
|
const uuid = getUuidResult.uuid;
|
|
6198
6207
|
await (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.sleep)(1000);
|
|
6199
|
-
new Http({
|
|
6208
|
+
const proxyHttp = new Http({
|
|
6200
6209
|
headers
|
|
6201
6210
|
}, params.proxyLoc);
|
|
6202
|
-
const qrcodeResult = await
|
|
6211
|
+
const qrcodeResult = await proxyHttp.api({
|
|
6203
6212
|
method: "get",
|
|
6204
6213
|
url: "https://mp.weixin.qq.com/safe/safeqrcode",
|
|
6205
6214
|
params: {
|
|
@@ -6322,7 +6331,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
6322
6331
|
}),
|
|
6323
6332
|
defaultErrorMsg: params.masssend ? "文章群发异常,请尝试关闭群发或稍后重试。" : "文章发布异常,请稍后重试。"
|
|
6324
6333
|
});
|
|
6325
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(appMsgId,
|
|
6334
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(appMsgId, `微信公众号发布完成。${JSON.stringify(qrcodeResult.proxyInfo)}`);
|
|
6326
6335
|
};
|
|
6327
6336
|
const waitQrcodeResultMaxTime = 2000 * scanRetryMaxCount;
|
|
6328
6337
|
const weixinPublish_rpa_rpaAction = async (task, params)=>{
|
|
@@ -7225,7 +7234,7 @@ const xiaohongshuPublish_mock_mockAction = async (task, params)=>{
|
|
|
7225
7234
|
},
|
|
7226
7235
|
defaultErrorMsg: "文章发布异常,请稍后重试。"
|
|
7227
7236
|
});
|
|
7228
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(publishResult.data?.id);
|
|
7237
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(publishResult.data?.id, `文章发布成功!${JSON.stringify(publishResult.proxyInfo)}`);
|
|
7229
7238
|
};
|
|
7230
7239
|
const rpa_GenXSCommon = __webpack_require__("./src/utils/XhsXsCommonEnc.js");
|
|
7231
7240
|
const rpa_xsEncrypt = new Xhshow();
|
|
@@ -7446,7 +7455,7 @@ const xiaohongshuPublish = async (task, params)=>{
|
|
|
7446
7455
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
7447
7456
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
7448
7457
|
};
|
|
7449
|
-
var package_namespaceObject = JSON.parse('{"i8":"1.2.24-beta.
|
|
7458
|
+
var package_namespaceObject = JSON.parse('{"i8":"1.2.24-beta.3"}');
|
|
7450
7459
|
const BetaFlag = "HuiwenCanary";
|
|
7451
7460
|
class Action {
|
|
7452
7461
|
constructor(task){
|