@iflyrpa/actions 4.0.0-beta.0 → 4.0.0-beta.1
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 +28 -3
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +28 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +28 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5489,9 +5489,7 @@ var __webpack_exports__ = {};
|
|
|
5489
5489
|
});
|
|
5490
5490
|
const package_json_namespaceObject = require("@iflyrpa/share/package.json");
|
|
5491
5491
|
var package_json_default = /*#__PURE__*/ __webpack_require__.n(package_json_namespaceObject);
|
|
5492
|
-
var package_namespaceObject = {
|
|
5493
|
-
i8: "3.0.4"
|
|
5494
|
-
};
|
|
5492
|
+
var package_namespaceObject = JSON.parse('{"i8":"3.0.5-beta.0"}');
|
|
5495
5493
|
const share_namespaceObject = require("@iflyrpa/share");
|
|
5496
5494
|
const external_node_fs_namespaceObject = require("node:fs");
|
|
5497
5495
|
var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
|
|
@@ -5596,6 +5594,13 @@ var __webpack_exports__ = {};
|
|
|
5596
5594
|
}
|
|
5597
5595
|
};
|
|
5598
5596
|
if (foundError) Object.assign(errorResponse, foundError);
|
|
5597
|
+
if (error.response?.status === 403) {
|
|
5598
|
+
this.logger?.warn(`[403 详细信息] URL: ${error.config?.url}`);
|
|
5599
|
+
this.logger?.warn(`[403 响应头] ${JSON.stringify(error.response?.headers || {})}`);
|
|
5600
|
+
this.logger?.warn(`[403 响应体] ${JSON.stringify(error.response?.data || null)}`);
|
|
5601
|
+
const verifyDecision = error.response?.headers?.["x-tt-verify-passport-decision"];
|
|
5602
|
+
if (verifyDecision) this.logger?.warn(`[403 验证决策] x-tt-verify-passport-decision: ${verifyDecision}`);
|
|
5603
|
+
}
|
|
5599
5604
|
if (error.response?.data) {
|
|
5600
5605
|
if ("object" == typeof error.response.data) {
|
|
5601
5606
|
const serverError = error.response.data;
|
|
@@ -14587,6 +14592,26 @@ var __webpack_exports__ = {};
|
|
|
14587
14592
|
retries: 3,
|
|
14588
14593
|
retryDelay: 2000
|
|
14589
14594
|
});
|
|
14595
|
+
task.logger.info("========== api调用完成 ==========");
|
|
14596
|
+
task.logger.info(`decision值: ${JSON.stringify(decision)}, needsVerification(decision): ${needsVerification(decision)}`);
|
|
14597
|
+
if (needsVerification(decision)) {
|
|
14598
|
+
task.logger.warn(`TaskId:${task.taskId},检测到需要验证,准备返回验证信息`);
|
|
14599
|
+
await updateTaskState?.({
|
|
14600
|
+
state: share_namespaceObject.TaskState.SUCCESS,
|
|
14601
|
+
result: {
|
|
14602
|
+
response: decision
|
|
14603
|
+
}
|
|
14604
|
+
});
|
|
14605
|
+
task.logger.info("返回验证响应: code=0, message=操作成功");
|
|
14606
|
+
return {
|
|
14607
|
+
code: 0,
|
|
14608
|
+
data: {
|
|
14609
|
+
result: decision
|
|
14610
|
+
},
|
|
14611
|
+
message: "操作成功"
|
|
14612
|
+
};
|
|
14613
|
+
}
|
|
14614
|
+
task.logger.info("不需要验证,继续正常流程");
|
|
14590
14615
|
reportLogger({
|
|
14591
14616
|
token: params.huiwenToken || "",
|
|
14592
14617
|
enverionment: task.enverionment || "development",
|