fix #161
This commit is contained in:
		
							parent
							
								
									aecf4af7f2
								
							
						
					
					
						commit
						e02f9a9931
					
				| @ -14,7 +14,7 @@ func (this *ObejctController) Post() { | |||||||
| 	var ob models.Object | 	var ob models.Object | ||||||
| 	json.Unmarshal(this.Ctx.RequestBody, &ob) | 	json.Unmarshal(this.Ctx.RequestBody, &ob) | ||||||
| 	objectid := models.AddOne(ob) | 	objectid := models.AddOne(ob) | ||||||
| 	this.Data["json"] = "{\"ObjectId\":\"" + objectid + "\"}" | 	this.Data["json"] = map[string]string{"ObjectId": objectid} | ||||||
| 	this.ServeJson() | 	this.ServeJson() | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user