Fix stupid ai errors

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2026-01-21 14:58:23 +08:00
parent 96d76b3657
commit 2f26b2ddb5
9 changed files with 32 additions and 32 deletions

View File

@@ -41,7 +41,7 @@ func Checkin(c *gin.Context) {
eventIdOrig, ok := c.GetQuery("event_id")
if !ok {
errorCode := new(exception.Builder).
SetStatus(exception.StatusClient).
SetStatus(exception.StatusUser).
SetService(exception.ServiceEvent).
SetEndpoint(exception.EndpointEventServiceCheckin).
SetType(exception.TypeCommon).
@@ -96,7 +96,7 @@ func CheckinSubmit(c *gin.Context) {
err := attendanceData.VerifyCheckinCode(req.ChekinCode)
if err != nil {
errorCode := new(exception.Builder).
SetStatus(exception.StatusClient).
SetStatus(exception.StatusUser).
SetService(exception.ServiceEvent).
SetEndpoint(exception.EndpointEventServiceCheckinSubmit).
SetType(exception.TypeCommon).
@@ -140,7 +140,7 @@ func CheckinQuery(c *gin.Context) {
eventIdOrig, ok := c.GetQuery("event_id")
if !ok {
errorCode := new(exception.Builder).
SetStatus(exception.StatusClient).
SetStatus(exception.StatusUser).
SetService(exception.ServiceEvent).
SetEndpoint(exception.EndpointEventServiceCheckinQuery).
SetType(exception.TypeCommon).
@@ -152,7 +152,7 @@ func CheckinQuery(c *gin.Context) {
eventId, err := uuid.Parse(eventIdOrig)
if err != nil {
errorCode := new(exception.Builder).
SetStatus(exception.StatusClient).
SetStatus(exception.StatusUser).
SetService(exception.ServiceEvent).
SetEndpoint(exception.EndpointEventServiceCheckinQuery).
SetType(exception.TypeCommon).
@@ -179,7 +179,7 @@ func CheckinQuery(c *gin.Context) {
return
} else if attendance == nil {
errorCode := new(exception.Builder).
SetStatus(exception.StatusClient).
SetStatus(exception.StatusUser).
SetService(exception.ServiceEvent).
SetEndpoint(exception.EndpointEventServiceCheckinQuery).
SetType(exception.TypeSpecific).