This commit is contained in:
richboo111
2023-06-12 14:16:00 +08:00
parent 3293103285
commit 866aa16bc5
5 changed files with 31 additions and 7 deletions

View File

@@ -24,15 +24,13 @@ func (c *SFPSController) SfOrder() {
c.ServeJSON()
return
}
// 订单回调
for k, v := range msg {
callbackResponse = sfps.OnWaybillMsg(k, v)
c.Data["data"] = callbackResponse
fmt.Printf("SfOrder callbackResponse=%s", utils.Format4Output(callbackResponse, false))
err := c.ServeJSON()
if err != nil {
fmt.Printf("serveJSON err=%v", err)
}
c.ServeJSON()
}
} else {
c.Abort("404")