fix #161
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -14,7 +14,7 @@ func (this *ObejctController) Post() { | ... | @@ -14,7 +14,7 @@ func (this *ObejctController) Post() { |
| 14 | var ob models.Object | 14 | var ob models.Object |
| 15 | json.Unmarshal(this.Ctx.RequestBody, &ob) | 15 | json.Unmarshal(this.Ctx.RequestBody, &ob) |
| 16 | objectid := models.AddOne(ob) | 16 | objectid := models.AddOne(ob) |
| 17 | this.Data["json"] = "{\"ObjectId\":\"" + objectid + "\"}" | 17 | this.Data["json"] = map[string]string{"ObjectId": objectid} |
| 18 | this.ServeJson() | 18 | this.ServeJson() |
| 19 | } | 19 | } |
| 20 | 20 | ... | ... |
-
Please register or sign in to post a comment