作者 yangfu

base

@@ -20,7 +20,7 @@ type BaseController struct { @@ -20,7 +20,7 @@ type BaseController struct {
20 20
21 func (this *BaseController) Options() { 21 func (this *BaseController) Options() {
22 this.AllowCross() //允许跨域 22 this.AllowCross() //允许跨域
23 - this.Data["json"] = map[string]interface{}{"status": 200, "message": "ok", "moreinfo": ""} 23 + this.Data["json"] = map[string]interface{}{"status": 204, "message": "ok", "moreinfo": ""}
24 this.ServeJSON() 24 this.ServeJSON()
25 } 25 }
26 26