修复显示错误
This commit is contained in:
parent
10d6989672
commit
3953d0502a
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue