Explorar el Código

change xorm.io

tags/v1.0.8
liangzy hace 3 años
padre
commit
1c9190e98f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      mvc/controller.go

+ 1
- 1
mvc/controller.go Ver fichero

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



Cargando…
Cancelar
Guardar