作者 tangxvhui

调整

... ... @@ -14,14 +14,16 @@ type PlatformController struct {
//
func (c PlatformController) UpdateData() {
var msg *protocol.ResponseMessage
defer func() {
c.ResposeJson(msg)
c.Data["json"] = map[string]interface{}{
"code": 0,
"msg": "ok",
}
c.ServeJSON()
}()
var param platform.CommonProtocol
if err := json.Unmarshal(c.Ctx.Input.RequestBody, &param); err != nil {
log.Error("json 解析失败 err:%s", err)
msg = protocol.BadRequestParam("1")
return
}
// m, err := platform.NewPlatformAction(param.Module)
... ... @@ -30,7 +32,7 @@ func (c PlatformController) UpdateData() {
// return
// }
// err = m.DoAction(param.Action, []byte(param.Data))
msg = protocol.NewMessage("0")
return
}
... ...