- dingding callback
This commit is contained in:
28
controllers/dingding_callback.go
Normal file
28
controllers/dingding_callback.go
Normal file
@@ -0,0 +1,28 @@
|
||||
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")
|
||||
// }
|
||||
}
|
||||
Reference in New Issue
Block a user