neinfo recover

This commit is contained in:
simonzhangsz committed 2023-09-11 14:45:32 +08:00
1 parent d703d15220
commit 22bfd015ce
3 files changed
+19 -15

No files matched your search

+6 -1
View File
@@ -105,7 +105,12 @@ func PostNeInfo(w http.ResponseWriter, r *http.Request) {
log.Debug("Body:", string(body))
neInfo := new(dborm.NeInfo)
_ = json.Unmarshal(body, neInfo)
err = json.Unmarshal(body, neInfo)
if err != nil {
log.Error("Failed to json.Unmarshal:", err)
services.ResponseInternalServerError500ProcessError(w, err)
return
}
neInfo.UpdateTime = time.Now().Format(time.DateTime)
log.Debug("NE info:", neInfo)