(taskId)
| 2818 | } |
| 2819 | |
| 2820 | async 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 | |
| 2833 | window.selectPlan = selectPlan; |
| 2834 | window.generateLink = generateLink; |
nothing calls this directly
no test coverage detected