This commit is contained in:
苏尹岚
2020-12-09 11:50:19 +08:00
parent 649d07dd87
commit 76da2af43e
4 changed files with 45 additions and 7 deletions

View File

@@ -3,6 +3,8 @@ package controllers
import (
"net/http"
"git.rosy.net.cn/jx-callback/globals/api"
"github.com/astaxie/beego"
)
@@ -12,7 +14,10 @@ type FnController struct {
func (c *FnController) Msg() {
if c.Ctx.Input.Method() == http.MethodPost {
msg := api.FnAPI.GetOrderCallbackMsg(c.Ctx.Request)
if msg != nil {
fn.OnWaybillMsg(msg)
}
c.Data["json"] = ""
c.ServeJSON()
} else {