- OnNewPromotionMsg
This commit is contained in:
@@ -116,7 +116,14 @@ func (c *DjswController) StockIsHave() {
|
||||
}
|
||||
|
||||
func (c *DjswController) SinglePromoteCreate() {
|
||||
globals.SugarLogger.Info(string(c.Ctx.Input.RequestBody))
|
||||
c.Data["json"] = jdapi.Err2CallbackResponse(nil, "")
|
||||
c.ServeJSON()
|
||||
if c.Ctx.Input.Method() == http.MethodPost {
|
||||
obj, callbackResponse := api.JdAPI.GetOrderCallbackMsg(c.Ctx.Input.RequestBody)
|
||||
if callbackResponse == nil {
|
||||
callbackResponse = promotion.OnNewPromotionMsg(obj)
|
||||
}
|
||||
c.Data["json"] = callbackResponse
|
||||
c.ServeJSON()
|
||||
} else {
|
||||
c.Abort("404")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user