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

Function testProxyItem

static/js/settings.js:1174–1185  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

1172
1173// 测试单个代理
1174async function testProxyItem(id) {
1175 try {
1176 const result = await api.post(`/settings/proxies/${id}/test`);
1177 if (result.success) {
1178 toast.success(result.message);
1179 } else {
1180 toast.error(result.message);
1181 }
1182 } catch (error) {
1183 toast.error('测试失败: ' + error.message);
1184 }
1185}
1186
1187// 切换代理状态
1188async function toggleProxyItem(id, enabled) {

Callers

nothing calls this directly

Calls 3

successMethod · 0.80
errorMethod · 0.80
postMethod · 0.45

Tested by

no test coverage detected