aa
This commit is contained in:
@@ -4,7 +4,6 @@ import (
|
||||
"git.rosy.net.cn/baseapi/utils"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
beego "github.com/astaxie/beego/server/web"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
type PrintController struct {
|
||||
@@ -17,12 +16,12 @@ type CallBackPrint struct {
|
||||
}
|
||||
|
||||
func (c *PrintController) Msg() {
|
||||
if c.Ctx.Input.Method() == http.MethodPost {
|
||||
callBackPrint := &CallBackPrint{}
|
||||
globals.SugarLogger.Debugf("print callback callbackResponse:%s", utils.Format4Output(c.Ctx.Request, true))
|
||||
c.Data["json"] = callBackPrint
|
||||
c.ServeJSON()
|
||||
} else {
|
||||
c.Abort("404")
|
||||
}
|
||||
//if c.Ctx.Input.Method() == http.MethodPost {
|
||||
callBackPrint := &CallBackPrint{}
|
||||
globals.SugarLogger.Debugf("print callback callbackResponse:%s", utils.Format4Output(c.Ctx.Request, true))
|
||||
c.Data["json"] = callBackPrint
|
||||
c.ServeJSON()
|
||||
//} else {
|
||||
// c.Abort("404")
|
||||
//}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user