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

Function openBindCardTask

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

Source from the content-addressed store, hash-verified

2681}
2682
2683async function openBindCardTask(taskId) {
2684 try {
2685 const data = await api.post(`/payment/bind-card/tasks/${taskId}/open`, {});
2686 if (data?.success) {
2687 toast.success(`任务 #${taskId} 已尝试打开`);
2688 await loadBindCardTasks();
2689 return;
2690 }
2691 throw new Error(data?.detail || "打开失败");
2692 } catch (e) {
2693 toast.error(`打开任务失败: ${formatErrorMessage(e)}`);
2694 }
2695}
2696
2697async function markBindCardTaskUserAction(taskId) {
2698 const lockKey = `mark:${taskId}`;

Callers

nothing calls this directly

Calls 5

loadBindCardTasksFunction · 0.85
formatErrorMessageFunction · 0.85
successMethod · 0.80
errorMethod · 0.80
postMethod · 0.45

Tested by

no test coverage detected