mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-25 15:08:11 +00:00
fix texture set thumbnail bug
This commit is contained in:
parent
6dca4f6c5b
commit
0fdf015998
@ -29,6 +29,7 @@ func Edit(w http.ResponseWriter, r *http.Request) {
|
||||
id, err := primitive.ObjectIDFromHex(strings.TrimSpace(r.FormValue("ID")))
|
||||
name := strings.TrimSpace(r.FormValue("Name"))
|
||||
category := strings.TrimSpace(r.FormValue("Category"))
|
||||
thumbnail := strings.TrimSpace(r.FormValue("Image"))
|
||||
|
||||
if err != nil {
|
||||
helper.WriteJSON(w, server.Result{
|
||||
@ -65,6 +66,7 @@ func Edit(w http.ResponseWriter, r *http.Request) {
|
||||
"Name": name,
|
||||
"TotalPinYin": pinyin.TotalPinYin,
|
||||
"FirstPinYin": pinyin.FirstPinYin,
|
||||
"Thumbnail": thumbnail,
|
||||
}
|
||||
|
||||
update := bson.M{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user