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

Function deleteCpaService

static/js/settings.js:1405–1415  ·  view source on GitHub ↗
(id, name)

Source from the content-addressed store, hash-verified

1403}
1404
1405async function deleteCpaService(id, name) {
1406 const confirmed = await confirm(`确定要删除 CPA 服务「${name}」吗?`);
1407 if (!confirmed) return;
1408 try {
1409 await api.delete(`/cpa-services/${id}`);
1410 toast.success('已删除');
1411 loadCpaServices();
1412 } catch (e) {
1413 toast.error('删除失败: ' + e.message);
1414 }
1415}
1416
1417async function testCpaServiceById(id) {
1418 try {

Callers

nothing calls this directly

Calls 5

confirmFunction · 0.85
loadCpaServicesFunction · 0.85
successMethod · 0.80
errorMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected