29 lines
599 B
Go
29 lines
599 B
Go
package controllers
|
|
|
|
import (
|
|
"git.rosy.net.cn/jx-callback/globals"
|
|
"github.com/astaxie/beego"
|
|
)
|
|
|
|
type DingDingController struct {
|
|
beego.Controller
|
|
}
|
|
|
|
func init() {
|
|
|
|
}
|
|
|
|
func (c *DingDingController) Msg() {
|
|
globals.SugarLogger.Debugf("dingding msg:%s", string(c.Ctx.Input.RequestBody))
|
|
// if c.Ctx.Input.Method() == http.MethodPost {
|
|
// obj, callbackResponse := api.EbaiAPI.GetCallbackMsg(c.Ctx.Request)
|
|
// if callbackResponse == nil {
|
|
// callbackResponse = ebai.OnCallbackMsg(obj)
|
|
// }
|
|
// c.Data["json"] = callbackResponse
|
|
// c.ServeJSON()
|
|
// } else {
|
|
// c.Abort("404")
|
|
// }
|
|
}
|