@iflyrpa/actions 3.0.4 → 4.0.0-beta.0
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 +24 -49
- package/dist/bundle.js.map +1 -1
- package/dist/index.js +24 -49
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -49
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5435,7 +5435,7 @@ function __webpack_require__(moduleId) {
|
|
|
5435
5435
|
};
|
|
5436
5436
|
})();
|
|
5437
5437
|
var package_namespaceObject = {
|
|
5438
|
-
i8: "3.0.
|
|
5438
|
+
i8: "3.0.4"
|
|
5439
5439
|
};
|
|
5440
5440
|
var dist = __webpack_require__("../../node_modules/.pnpm/https-proxy-agent@7.0.6/node_modules/https-proxy-agent/dist/index.js");
|
|
5441
5441
|
async function ProxyAgent(task, ip, adr, accountId, refresh) {
|
|
@@ -14483,54 +14483,29 @@ const mock_mockAction = async (task, params)=>{
|
|
|
14483
14483
|
})}`);
|
|
14484
14484
|
task.logger.info(`publishData: ${JSON.stringify(publishData)}`);
|
|
14485
14485
|
task.logger.info(`url: https://creator.douyin.com/web/api/media/aweme/create_v2/?${publishQueryParams}`);
|
|
14486
|
-
|
|
14487
|
-
|
|
14488
|
-
|
|
14489
|
-
|
|
14490
|
-
|
|
14491
|
-
|
|
14492
|
-
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14496
|
-
|
|
14497
|
-
|
|
14498
|
-
|
|
14499
|
-
|
|
14500
|
-
|
|
14501
|
-
|
|
14502
|
-
|
|
14503
|
-
|
|
14504
|
-
|
|
14505
|
-
|
|
14506
|
-
|
|
14507
|
-
|
|
14508
|
-
|
|
14509
|
-
retryDelay: 2000
|
|
14510
|
-
});
|
|
14511
|
-
} catch (error) {
|
|
14512
|
-
const upstreamMessage = error?.message || String(error);
|
|
14513
|
-
const upstreamCode = error?.code;
|
|
14514
|
-
task.logger.error(`TaskId:${task.taskId},create_v2 请求异常,上游错误已屏蔽。上游 code=${upstreamCode},message=${upstreamMessage}`, {
|
|
14515
|
-
error,
|
|
14516
|
-
upstreamData: error?.data,
|
|
14517
|
-
extra: error?.extra
|
|
14518
|
-
});
|
|
14519
|
-
const message = "发布失败,请重试";
|
|
14520
|
-
await updateTaskState?.({
|
|
14521
|
-
state: __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.TaskState.FAILED,
|
|
14522
|
-
error: message,
|
|
14523
|
-
result: {
|
|
14524
|
-
data: decision,
|
|
14525
|
-
uploadedImgList: JSON.stringify(publishData.item.common.images)
|
|
14526
|
-
}
|
|
14527
|
-
});
|
|
14528
|
-
return {
|
|
14529
|
-
code: 414,
|
|
14530
|
-
data: "",
|
|
14531
|
-
message
|
|
14532
|
-
};
|
|
14533
|
-
}
|
|
14486
|
+
const publishResult = await proxyHttp.api({
|
|
14487
|
+
method: "post",
|
|
14488
|
+
url: `https://creator.douyin.com/web/api/media/aweme/create_v2/?${publishQueryParams}`,
|
|
14489
|
+
data: publishData,
|
|
14490
|
+
defaultErrorMsg: "发布异常,请稍后重试。",
|
|
14491
|
+
headers: {
|
|
14492
|
+
...headers,
|
|
14493
|
+
Referer: "https://creator.douyin.com/creator-micro/content/post/image?default-tab=3&enter_from=publish_page&media_type=image&type=new",
|
|
14494
|
+
"Content-Type": "application/json",
|
|
14495
|
+
Accept: "application/json, text/plain, */*",
|
|
14496
|
+
"bd-ticket-guard-client-data": bdTicketGuardClientData["headers_bd_ticket_guard_client_data"],
|
|
14497
|
+
"bd-ticket-guard-ree-public-key": bdTicketGuardClientData["headers_bd_ticket_guard_ree_public_key"],
|
|
14498
|
+
"bd-ticket-guard-version": "2",
|
|
14499
|
+
"bd-ticket-guard-web-sign-type": "1",
|
|
14500
|
+
"bd-ticket-guard-web-version": "2",
|
|
14501
|
+
"x-secsdk-csrf-token": csrfToken,
|
|
14502
|
+
"x-tt-session-dtrait": sessionDtrait || ""
|
|
14503
|
+
}
|
|
14504
|
+
}, {
|
|
14505
|
+
timeout: 60000,
|
|
14506
|
+
retries: 3,
|
|
14507
|
+
retryDelay: 2000
|
|
14508
|
+
});
|
|
14534
14509
|
reportLogger({
|
|
14535
14510
|
token: params.huiwenToken || "",
|
|
14536
14511
|
enverionment: task.enverionment || "development",
|