e02f9a99 by astaxie

fix #161

1 parent aecf4af7
...@@ -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
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!