This commit is contained in:
邹宗楠
2023-05-19 14:14:48 +08:00
parent a86873d5e2
commit aa2a7cbcbf
7 changed files with 15 additions and 17 deletions

View File

@@ -11,7 +11,6 @@ type FnController struct {
web.Controller
}
// 门店回掉
func (c *FnController) FnStore() {
if c.Ctx.Input.Method() == http.MethodPost {
@@ -33,7 +32,7 @@ func (c *FnController) FnStore() {
// 订单状态
func (c *FnController) FnOrder() {
if c.Ctx.Input.Method() == http.MethodPost {
msg, callbackResponse := api.FnAPI.GetChainOrderStatusNotify(c.Ctx.Request)
msg, result, callbackResponse := api.FnAPI.GetChainOrderStatusNotify(c.Ctx.Request)
if callbackResponse.Code == -1 {
c.Data["code"] = callbackResponse
c.ServeJSON()
@@ -41,7 +40,7 @@ func (c *FnController) FnOrder() {
}
// 订单回调
callbackResponse = fn.OnWaybillMsg(msg)
callbackResponse = fn.OnWaybillMsg(msg, result)
c.Data["code"] = callbackResponse
c.ServeJSON()
} else {
@@ -66,4 +65,3 @@ func (c *FnController) FnAbnormal() {
c.Abort("404")
}
}