MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / buildBatchPayload

Function buildBatchPayload

static/js/accounts.js:879–894  ·  view source on GitHub ↗
(extraFields = {})

Source from the content-addressed store, hash-verified

877
878// 构建批量请求体(含 select_all 和筛选参数)
879function buildBatchPayload(extraFields = {}) {
880 const filterPayload = filterProtocol.toPayload({
881 status_filter: currentFilters.status,
882 email_service_filter: currentFilters.email_service,
883 search_filter: currentFilters.search,
884 });
885 if (selectAllPages) {
886 return {
887 ids: [],
888 select_all: true,
889 ...filterPayload,
890 ...extraFields
891 };
892 }
893 return { ids: Array.from(selectedAccounts), ...extraFields };
894}
895
896// 获取有效选中数量(select_all 时用总数)
897function getEffectiveCount() {

Callers 8

handleBatchRefreshFunction · 0.85
handleBatchValidateFunction · 0.85
handleBatchDeleteFunction · 0.85
exportAccountsFunction · 0.85
handleBatchUploadCpaFunction · 0.85
handleBatchUploadSub2ApiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected