ソースを参照

change xorm.io

tags/v1.0.8
liangzy 3年前
コミット
1c9190e98f
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      mvc/controller.go

+ 1
- 1
mvc/controller.go ファイルの表示

@@ -24,7 +24,7 @@ func (this *BaseController) Prepare() {
}

func (this *BaseController) RespJson(status bool, code int, msg string, data interface{}) {
this.Data["json"] = &map[string]interface{}{"status": status, "code": code, "msg": msg, "machine": data}
this.Data["json"] = &map[string]interface{}{"status": status, "code": code, "msg": msg, "data": data}
this.ServeJSON()
}



読み込み中…
キャンセル
保存