apiGenerateMachineId 生成新的机器码
(w http.ResponseWriter, r *http.Request)
| 3127 | w.WriteHeader(http.StatusBadRequest) |
| 3128 | json.NewEncoder(w).Encode(map[string]string{"error": "Microsoft profile selection not found or expired"}) |
| 3129 | return |
| 3130 | } |
| 3131 | |
| 3132 | selection.mu.Lock() |
| 3133 | if selection.canceled.Load() || !time.Now().Before(selection.ExpiresAt) { |
| 3134 | selection.mu.Unlock() |
| 3135 | h.removeMicrosoftProfileSelection(selectionID, selection) |
no test coverage detected