Add the field deletedKeepDays.

This commit is contained in:
lishuang 2020-07-12 17:55:40 +08:00
parent b82bac40fc
commit 19cfd3daf4

View File

@ -123,6 +123,10 @@ func (this *PreferenceController) Edit(writer http.ResponseWriter, request *http
intDeletedKeepDays, err := strconv.Atoi(deletedKeepDaysStr)
this.PanicError(err)
deletedKeepDays = int64(intDeletedKeepDays)
if deletedKeepDays < 0 {
panic(result.BadRequest("deletedKeepDays cannot less than 0"))
}
}
var allowRegister = false