- AfterSaleBillStatus

This commit is contained in:
gazebo
2019-03-15 15:04:25 +08:00
parent 3e7af36e8e
commit b000fbb3e7
2 changed files with 17 additions and 0 deletions

View File

@@ -76,3 +76,8 @@ func OnStoreMsg(msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
globals.SugarLogger.Debugf("OnStoreMsg, msg:%s", utils.Format4Output(msg, false))
return jdapi.Err2CallbackResponse(nil, "")
}
func OnAfterSaleMsg(msg *jdapi.CallbackOrderMsg) (retVal *jdapi.CallbackResponse) {
globals.SugarLogger.Debugf("OnAfterSaleMsg %s", utils.Format4Output(msg, false))
return retVal
}

View File

@@ -150,3 +150,15 @@ func (c *DjswController) transferResponse(inCallbackResponse *jdapi.CallbackResp
}
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()
}