zoie 1 gadu atpakaļ
vecāks
revīzija
fe8329f42f
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      controllers/Leave.go

+ 1 - 1
controllers/Leave.go

@@ -178,7 +178,7 @@ func (c *LeaveController) Leave_Deduct() {
 		return
 	}
 
-	duration := Attendance.GetRemainingDaysOff(c.User.T_uuid)
+	duration := Attendance.GetRemainingDaysOff(T_uuid)
 	if T_duration > duration {
 		c.Data["json"] = lib.JSONS{Code: 202, Msg: "超过加班总时长!"}
 		c.ServeJSON()