MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / save_proxy_pool_sources

Function save_proxy_pool_sources

app/web/routes.py:116–132  ·  view source on GitHub ↗

保存代理源;代理池在运行时后台刷新加载新代理。

(payload: ProxyPoolSourcesRequest)

Source from the content-addressed store, hash-verified

114
115
116@router.post("/api/accounts/{account_id}/payments/preview/seed")
117def seed_preview_payment(account_id: str, payload: PreviewSeedRequest):
118 return success(payment_service.seed_preview(account_id, payload))
119
120
121@router.post("/api/accounts/{account_id}/payments/qr")
122def create_qr(account_id: str, payload: CreateQrRequest):
123 return success(payment_service.create_qr(account_id, payload))
124
125
126@router.post("/api/accounts/{account_id}/run")
127def run_payment_flow(account_id: str):
128 from app.services.scheduler_service import get_scheduler_service
129
130 return success(get_scheduler_service().start_account_flow(account_id, source="manual"))
131
132
133@router.post("/api/accounts/{account_id}/pause")
134def pause_account_flow(account_id: str):
135 from app.services.scheduler_service import get_scheduler_service

Callers

nothing calls this directly

Calls 5

BadRequestErrorClass · 0.90
successFunction · 0.85
startMethod · 0.45

Tested by

no test coverage detected