- AfterSaleBillStatus
This commit is contained in:
@@ -76,3 +76,8 @@ func OnStoreMsg(msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
|
|||||||
globals.SugarLogger.Debugf("OnStoreMsg, msg:%s", utils.Format4Output(msg, false))
|
globals.SugarLogger.Debugf("OnStoreMsg, msg:%s", utils.Format4Output(msg, false))
|
||||||
return jdapi.Err2CallbackResponse(nil, "")
|
return jdapi.Err2CallbackResponse(nil, "")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func OnAfterSaleMsg(msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
|
||||||
|
globals.SugarLogger.Debugf("OnAfterSaleMsg %s", utils.Format4Output(msg, false))
|
||||||
|
return retVal
|
||||||
|
}
|
||||||
|
|||||||
@@ -150,3 +150,15 @@ func (c *DjswController) transferResponse(inCallbackResponse *jdapi.CallbackResp
|
|||||||
}
|
}
|
||||||
return inCallbackResponse
|
return inCallbackResponse
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c *DjswController) AfterSaleBillStatus() {
|
||||||
|
var obj *jdapi.CallbackOrderMsg
|
||||||
|
var callbackResponse *jdapi.CallbackResponse
|
||||||
|
obj, callbackResponse = api.JdAPI.GetOrderCallbackMsg(c.Ctx.Input.RequestBody)
|
||||||
|
callbackResponse = jd.OnAfterSaleMsg(obj)
|
||||||
|
if callbackResponse == nil {
|
||||||
|
callbackResponse = jdapi.SuccessResponse
|
||||||
|
}
|
||||||
|
c.Data["json"] = callbackResponse
|
||||||
|
c.ServeJSON()
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user