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

Function deleteBindCardTask

static/js/payment.js:2820–2831  ·  view source on GitHub ↗
(taskId)

Source from the content-addressed store, hash-verified

2818}
2819
2820async function deleteBindCardTask(taskId) {
2821 const ok = await confirm(`确认删除绑卡任务 #${taskId} 吗?`, "删除任务");
2822 if (!ok) return;
2823
2824 try {
2825 await api.delete(`/payment/bind-card/tasks/${taskId}`);
2826 toast.success(`任务 #${taskId} 已删除`);
2827 await loadBindCardTasks();
2828 } catch (e) {
2829 toast.error(`删除任务失败: ${formatErrorMessage(e)}`);
2830 }
2831}
2832
2833window.selectPlan = selectPlan;
2834window.generateLink = generateLink;

Callers

nothing calls this directly

Calls 6

confirmFunction · 0.85
loadBindCardTasksFunction · 0.85
formatErrorMessageFunction · 0.85
successMethod · 0.80
errorMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected