浏览代码

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()
}



正在加载...
取消
保存