修复bug及添加日志打印

This commit is contained in:
2026-07-28 10:36:32 +08:00
parent ea36e1155f
commit 8a48af6a3b
9 changed files with 1292 additions and 12 deletions

View File

@@ -298,7 +298,7 @@ func (s *Server) createTicketForActor(w http.ResponseWriter, r *http.Request, ac
phoneDigest := s.cipher.Digest(phone)
var duplicates []model.QueueTicket
if err := tx.Select("id", "display_number", "status").
Where("project_id = ? AND phone_hmac = ? AND status IN ?", projectID, phoneDigest,
Where("project_id = ? AND queue_session_id = ? AND phone_hmac = ? AND status IN ?", projectID, session.ID, phoneDigest,
[]string{model.TicketWaiting, model.TicketCalled, model.TicketArrived}).
Order("joined_at ASC").Find(&duplicates).Error; err != nil {
return err