apiGetAccountModelsCached 返回账号已缓存的模型列表(不实时拉取)
(w http.ResponseWriter, r *http.Request, id string)
| 3422 | } |
| 3423 | |
| 3424 | func (h *Handler) microsoftSessionCanceled(sessionID string) bool { |
| 3425 | h.microsoftFlowMu.Lock() |
| 3426 | defer h.microsoftFlowMu.Unlock() |
| 3427 | return h.microsoftSessionCanceledLocked(sessionID, time.Now()) |
| 3428 | } |
| 3429 | |
| 3430 | func (h *Handler) microsoftSessionCanceledLocked(sessionID string, now time.Time) bool { |
| 3431 | h.cleanupMicrosoftCanceledLocked(now) |
| 3432 | expiry, exists := h.microsoftCanceled[strings.TrimSpace(sessionID)] |
| 3433 | return exists && now.Before(expiry) |
no test coverage detected