@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.mjs
CHANGED
|
@@ -5434,9 +5434,7 @@ function __webpack_require__(moduleId) {
|
|
|
5434
5434
|
return module;
|
|
5435
5435
|
};
|
|
5436
5436
|
})();
|
|
5437
|
-
var package_namespaceObject = {
|
|
5438
|
-
i8: "3.0.4"
|
|
5439
|
-
};
|
|
5437
|
+
var package_namespaceObject = JSON.parse('{"i8":"3.0.5-beta.0"}');
|
|
5440
5438
|
var dist = __webpack_require__("../../node_modules/.pnpm/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/index.js");
|
|
5441
5439
|
async function ProxyAgent(task, ip, adr, accountId, refresh) {
|
|
5442
5440
|
const http = new Http({
|
|
@@ -5526,6 +5524,13 @@ class Http {
|
|
|
5526
5524
|
}
|
|
5527
5525
|
};
|
|
5528
5526
|
if (foundError) Object.assign(errorResponse, foundError);
|
|
5527
|
+
if (error.response?.status === 403) {
|
|
5528
|
+
this.logger?.warn(`[403 详细信息] URL: ${error.config?.url}`);
|
|
5529
|
+
this.logger?.warn(`[403 响应头] ${JSON.stringify(error.response?.headers || {})}`);
|
|
5530
|
+
this.logger?.warn(`[403 响应体] ${JSON.stringify(error.response?.data || null)}`);
|
|
5531
|
+
const verifyDecision = error.response?.headers?.["x-tt-verify-passport-decision"];
|
|
5532
|
+
if (verifyDecision) this.logger?.warn(`[403 验证决策] x-tt-verify-passport-decision: ${verifyDecision}`);
|
|
5533
|
+
}
|
|
5529
5534
|
if (error.response?.data) {
|
|
5530
5535
|
if ("object" == typeof error.response.data) {
|
|
5531
5536
|
const serverError = error.response.data;
|
|
@@ -14506,6 +14511,26 @@ const mock_mockAction = async (task, params)=>{
|
|
|
14506
14511
|
retries: 3,
|
|
14507
14512
|
retryDelay: 2000
|
|
14508
14513
|
});
|
|
14514
|
+
task.logger.info("========== api调用完成 ==========");
|
|
14515
|
+
task.logger.info(`decision值: ${JSON.stringify(decision)}, needsVerification(decision): ${needsVerification(decision)}`);
|
|
14516
|
+
if (needsVerification(decision)) {
|
|
14517
|
+
task.logger.warn(`TaskId:${task.taskId},检测到需要验证,准备返回验证信息`);
|
|
14518
|
+
await updateTaskState?.({
|
|
14519
|
+
state: __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.TaskState.SUCCESS,
|
|
14520
|
+
result: {
|
|
14521
|
+
response: decision
|
|
14522
|
+
}
|
|
14523
|
+
});
|
|
14524
|
+
task.logger.info("返回验证响应: code=0, message=操作成功");
|
|
14525
|
+
return {
|
|
14526
|
+
code: 0,
|
|
14527
|
+
data: {
|
|
14528
|
+
result: decision
|
|
14529
|
+
},
|
|
14530
|
+
message: "操作成功"
|
|
14531
|
+
};
|
|
14532
|
+
}
|
|
14533
|
+
task.logger.info("不需要验证,继续正常流程");
|
|
14509
14534
|
reportLogger({
|
|
14510
14535
|
token: params.huiwenToken || "",
|
|
14511
14536
|
enverionment: task.enverionment || "development",
|