京东增加回调,订单信息更改

This commit is contained in:
苏尹岚
2020-04-28 17:11:43 +08:00
parent f03facc4a8
commit 586c12d352
5 changed files with 38 additions and 0 deletions

View File

@@ -216,3 +216,16 @@ func (c *DjswController) UpdateSku() {
func (c *DjswController) OrderAddTips() {
c.orderStatus()
}
func (c *DjswController) OrderInfoChange() {
if c.Ctx.Input.Method() == http.MethodPost {
callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) {
callbackResponse = jd.OnOrderInfoChangeMsg(obj.(*jdapi.CallbackOrderInfoChangeMsg))
return callbackResponse
})
c.Data["json"] = c.transferResponse("OrderInfoChange", callbackResponse)
c.ServeJSON()
} else {
c.Abort("404")
}
}