MCPcopy Create free account
hub / github.com/AntiHub-Project/AntiHub / updateAccountStatus

Function updateAccountStatus

lib/api.ts:691–700  ·  view source on GitHub ↗
(cookieId: string, status: number)

Source from the content-addressed store, hash-verified

689 * 更新账号状态
690 */
691export async function updateAccountStatus(cookieId: string, status: number): Promise<any> {
692 const result = await fetchWithAuth<{ success: boolean; data: any }>(
693 `${API_BASE_URL}/api/plugin-api/accounts/${cookieId}/status`,
694 {
695 method: 'PUT',
696 body: JSON.stringify({ status }),
697 }
698 );
699 return result.data;
700}
701
702/**
703 * 转换账号类型(专属/共享)

Callers 1

handleToggleStatusFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected