胡轶钦 6 lat temu
rodzic
commit
1050c5da54
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1
    1
      controllers/verify/verify.go

+ 1
- 1
controllers/verify/verify.go Wyświetl plik

@@ -71,7 +71,7 @@ func (c *VerifyController) VerifyCourse() {
71 71
 			c.ResponseError(err)
72 72
 		}
73 73
 		if customerCard.VerifyStatus == models.VERIFY_USEABLE {
74
-			if customerCard.EndDate.After(time.Now()) {
74
+			if customerCard.EndDate.Before(time.Now()) {
75 75
 				customerCard.VerifyStatus = models.VERIFY_LATE
76 76
 				err := c.dao.UpdateCustomerCard(customerCard)
77 77
 				if err != nil {