@iflyrpa/actions 1.2.24-beta.9 → 1.2.25
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 +8 -5
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -5
- package/dist/index.mjs.map +1 -1
- package/dist/utils/http.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2939,6 +2939,7 @@ class Http {
|
|
|
2939
2939
|
code: 200,
|
|
2940
2940
|
message: "当前发文IP地址暂不支持!"
|
|
2941
2941
|
});
|
|
2942
|
+
this.proxyInfo = agent?.proxy.host;
|
|
2942
2943
|
const response = await this.apiClient({
|
|
2943
2944
|
...config,
|
|
2944
2945
|
...agent ? {
|
|
@@ -3309,7 +3310,7 @@ const mockAction = async (task, params)=>{
|
|
|
3309
3310
|
},
|
|
3310
3311
|
defaultErrorMsg: isDraft ? "文章同步出现异常,请稍后重试。" : "文章发布出现异常,请稍后重试。"
|
|
3311
3312
|
});
|
|
3312
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(0 == res.errno ? res?.ret?.article_id || '' : "", 0 == res.errno ? `文章发布成功!` : res.errmsg ?? '文章发布失败,请稍后重试。');
|
|
3313
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(0 == res.errno ? res?.ret?.article_id || '' : "", 0 == res.errno ? `文章发布成功!` + (proxyHttp.proxyInfo || "") : res.errmsg ?? '文章发布失败,请稍后重试。');
|
|
3313
3314
|
};
|
|
3314
3315
|
const rpaAction = async (task, params)=>{
|
|
3315
3316
|
const tmpCachePath = task.getTmpPath();
|
|
@@ -4346,7 +4347,7 @@ const mock_mockAction = async (task, params)=>{
|
|
|
4346
4347
|
headers
|
|
4347
4348
|
}, params.proxyLoc, params.huiwenToken) : http;
|
|
4348
4349
|
const publishResult = await proxyHttp.api(publishOption);
|
|
4349
|
-
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, `文章发布成功!` + (proxyHttp.proxyInfo || ""));
|
|
4350
4351
|
};
|
|
4351
4352
|
const rpa_GenAB = __webpack_require__("./src/utils/ttABEncrypt.js");
|
|
4352
4353
|
const rpa_rpaAction = async (task, params)=>{
|
|
@@ -6330,7 +6331,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
6330
6331
|
}),
|
|
6331
6332
|
defaultErrorMsg: params.masssend ? "文章群发异常,请尝试关闭群发或稍后重试。" : "文章发布异常,请稍后重试。"
|
|
6332
6333
|
});
|
|
6333
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(appMsgId, `微信公众号发布完成!`);
|
|
6334
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(appMsgId, `微信公众号发布完成!` + (proxyHttp.proxyInfo || ""));
|
|
6334
6335
|
};
|
|
6335
6336
|
const waitQrcodeResultMaxTime = 2000 * scanRetryMaxCount;
|
|
6336
6337
|
const weixinPublish_rpa_rpaAction = async (task, params)=>{
|
|
@@ -7233,7 +7234,7 @@ const xiaohongshuPublish_mock_mockAction = async (task, params)=>{
|
|
|
7233
7234
|
},
|
|
7234
7235
|
defaultErrorMsg: "文章发布异常,请稍后重试。"
|
|
7235
7236
|
});
|
|
7236
|
-
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, `文章发布成功!` + (proxyHttp.proxyInfo || ""));
|
|
7237
7238
|
};
|
|
7238
7239
|
const rpa_GenXSCommon = __webpack_require__("./src/utils/XhsXsCommonEnc.js");
|
|
7239
7240
|
const rpa_xsEncrypt = new Xhshow();
|
|
@@ -7454,7 +7455,9 @@ const xiaohongshuPublish = async (task, params)=>{
|
|
|
7454
7455
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
7455
7456
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
7456
7457
|
};
|
|
7457
|
-
var package_namespaceObject =
|
|
7458
|
+
var package_namespaceObject = {
|
|
7459
|
+
i8: "1.2.24"
|
|
7460
|
+
};
|
|
7458
7461
|
const BetaFlag = "HuiwenCanary";
|
|
7459
7462
|
class Action {
|
|
7460
7463
|
constructor(task){
|