1
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user