修复显示错误

This commit is contained in:
高山 2018-04-09 16:12:53 +08:00
parent 10d6989672
commit 3953d0502a
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ func (c *SaveController) Post() {
var project models.Project var project models.Project
err := json.Unmarshal(c.Ctx.Input.RequestBody, &project) err := json.Unmarshal(c.Ctx.Input.RequestBody, &project)
if err != nil { if err != nil {
c.SetJson(1, nil, "数据给事错误") c.SetJson(1, nil, "数据格式错误")
return return
} }
if project.Id != 0 { if project.Id != 0 {