京东增加回调,订单信息更改
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user