@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 CHANGED
@@ -8736,9 +8736,7 @@ var __webpack_exports__ = {};
8736
8736
  var package_namespaceObject = {
8737
8737
  i8: "0.1.0"
8738
8738
  };
8739
- var package_namespaceObject_0 = {
8740
- i8: "3.0.4"
8741
- };
8739
+ var package_namespaceObject_0 = JSON.parse('{"i8":"3.0.5-beta.0"}');
8742
8740
  const external_node_fs_namespaceObject = require("node:fs");
8743
8741
  var external_node_fs_default = /*#__PURE__*/ __webpack_require__.n(external_node_fs_namespaceObject);
8744
8742
  const external_node_http_namespaceObject = require("node:http");
@@ -23355,6 +23353,13 @@ var __webpack_exports__ = {};
23355
23353
  }
23356
23354
  };
23357
23355
  if (foundError) Object.assign(errorResponse, foundError);
23356
+ if (error.response?.status === 403) {
23357
+ this.logger?.warn(`[403 详细信息] URL: ${error.config?.url}`);
23358
+ this.logger?.warn(`[403 响应头] ${JSON.stringify(error.response?.headers || {})}`);
23359
+ this.logger?.warn(`[403 响应体] ${JSON.stringify(error.response?.data || null)}`);
23360
+ const verifyDecision = error.response?.headers?.["x-tt-verify-passport-decision"];
23361
+ if (verifyDecision) this.logger?.warn(`[403 验证决策] x-tt-verify-passport-decision: ${verifyDecision}`);
23362
+ }
23358
23363
  if (error.response?.data) {
23359
23364
  if ("object" == typeof error.response.data) {
23360
23365
  const serverError = error.response.data;
@@ -34796,6 +34801,26 @@ var __webpack_exports__ = {};
34796
34801
  retries: 3,
34797
34802
  retryDelay: 2000
34798
34803
  });
34804
+ task.logger.info("========== api调用完成 ==========");
34805
+ task.logger.info(`decision值: ${JSON.stringify(decision)}, needsVerification(decision): ${needsVerification(decision)}`);
34806
+ if (needsVerification(decision)) {
34807
+ task.logger.warn(`TaskId:${task.taskId},检测到需要验证,准备返回验证信息`);
34808
+ await updateTaskState?.({
34809
+ state: types_TaskState.SUCCESS,
34810
+ result: {
34811
+ response: decision
34812
+ }
34813
+ });
34814
+ task.logger.info("返回验证响应: code=0, message=操作成功");
34815
+ return {
34816
+ code: 0,
34817
+ data: {
34818
+ result: decision
34819
+ },
34820
+ message: "操作成功"
34821
+ };
34822
+ }
34823
+ task.logger.info("不需要验证,继续正常流程");
34799
34824
  reportLogger({
34800
34825
  token: params.huiwenToken || "",
34801
34826
  enverionment: task.enverionment || "development",