Files
jx-callback/controllers/eclp_callback.go
苏尹岚 ac2bb2bcfe aa
2021-03-30 10:19:36 +08:00

23 lines
356 B
Go

package controllers
import (
"fmt"
"net/http"
beego "github.com/astaxie/beego/adapter"
)
type EclpController struct {
beego.Controller
}
func (c *EclpController) Msg() {
if c.Ctx.Input.Method() == http.MethodPost {
fmt.Println("testElcp", c.Ctx.Request.Body)
c.Data["json"] = c.Ctx.Request.Body
c.ServeJSON()
} else {
c.Abort("404")
}
}