Browse Source

2024-03-28

zoie 8 months ago
parent
commit
8043d29151
1 changed files with 5 additions and 8 deletions
  1. 5 8
      controllers/Project.go

+ 5 - 8
controllers/Project.go

@@ -1056,15 +1056,12 @@ func (c *ProjectController) Project_Edit() {
 		project.T_reality_cycle = float32(T_reality_cycle)
 		project.T_reality_cycle = float32(T_reality_cycle)
 		clos = append(clos, "T_reality_cycle")
 		clos = append(clos, "T_reality_cycle")
 	}
 	}
-	if T_advance_day > 0 {
-		project.T_advance_day = float32(T_advance_day)
-		clos = append(clos, "T_advance_day")
-	}
-	if T_bonus > 0 {
-		project.T_bonus = float32(T_bonus)
-		clos = append(clos, "T_bonus")
 
 
-	}
+	project.T_advance_day = float32(T_advance_day)
+	clos = append(clos, "T_advance_day")
+	project.T_bonus = float32(T_bonus)
+	clos = append(clos, "T_bonus")
+
 	if T_Perf > 0 {
 	if T_Perf > 0 {
 		project.T_Perf = float32(T_Perf)
 		project.T_Perf = float32(T_Perf)
 		clos = append(clos, "T_Perf")
 		clos = append(clos, "T_Perf")