@iflyrpa/actions 4.0.0-beta.4 → 4.0.0-beta.6
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 +39 -14
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +7 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -5434,7 +5434,7 @@ function __webpack_require__(moduleId) {
|
|
|
5434
5434
|
return module;
|
|
5435
5435
|
};
|
|
5436
5436
|
})();
|
|
5437
|
-
var package_namespaceObject = JSON.parse('{"i8":"
|
|
5437
|
+
var package_namespaceObject = JSON.parse('{"i8":"4.0.0-beta.5"}');
|
|
5438
5438
|
var dist = __webpack_require__("../../node_modules/.pnpm/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/index.js");
|
|
5439
5439
|
async function ProxyAgent(task, ip, adr, accountId, refresh) {
|
|
5440
5440
|
const http = new Http({
|
|
@@ -14521,10 +14521,13 @@ const mock_mockAction = async (task, params)=>{
|
|
|
14521
14521
|
].filter(Boolean).join(" ");
|
|
14522
14522
|
const message = `图文发布失败,原因:${details}${task.debug ? ` ${http.proxyInfo}` : ""}`;
|
|
14523
14523
|
task.logger.warn(`TaskId:${task.taskId},检测到需要验证,准备返回验证信息`);
|
|
14524
|
+
let decisionObj = {};
|
|
14525
|
+
if (decision) decisionObj = decision;
|
|
14524
14526
|
const mockData = {
|
|
14525
14527
|
state: __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.TaskState.FAILED,
|
|
14526
14528
|
error: message,
|
|
14527
14529
|
result: {
|
|
14530
|
+
...decisionObj,
|
|
14528
14531
|
data: decision,
|
|
14529
14532
|
uploadedImgList: JSON.stringify(publishData.item.common.images)
|
|
14530
14533
|
}
|
|
@@ -14554,10 +14557,13 @@ const mock_mockAction = async (task, params)=>{
|
|
|
14554
14557
|
const message = `图文发布${isSuccess ? "成功" : `失败,原因:${publishResult.status_msg} ${decision?.verify_title} ${decision?.verify_desc}`}${task.debug ? ` ${http.proxyInfo}` : ""}`;
|
|
14555
14558
|
const data = isSuccess ? publishResult.item_id || "" : "";
|
|
14556
14559
|
if (!isSuccess) {
|
|
14560
|
+
let decisionObj = {};
|
|
14561
|
+
if (decision) decisionObj = decision;
|
|
14557
14562
|
await updateTaskState?.({
|
|
14558
14563
|
state: __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.TaskState.FAILED,
|
|
14559
14564
|
error: message,
|
|
14560
14565
|
result: {
|
|
14566
|
+
...decisionObj,
|
|
14561
14567
|
data: decision,
|
|
14562
14568
|
uploadedImgList: JSON.stringify(publishData.item.common.images)
|
|
14563
14569
|
}
|