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

Function testService

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

Source from the content-addressed store, hash-verified

783
784// 测试服务
785async function testService(id) {
786 try {
787 const data = await api.post(`/email-services/${id}/test`);
788 if (data.success) {
789 toast.success('服务连接正常');
790 } else {
791 toast.warning('服务连接失败: ' + data.message);
792 }
793 } catch (error) {
794 toast.error('测试失败: ' + error.message);
795 }
796}
797
798// 切换服务状态
799async function toggleService(id, enabled) {

Callers

nothing calls this directly

Calls 4

successMethod · 0.80
warningMethod · 0.80
errorMethod · 0.80
postMethod · 0.45

Tested by

no test coverage detected