+ globals.EnableNewAct
This commit is contained in:
@@ -126,7 +126,11 @@ func (c *DjswController) SinglePromoteCreate() {
|
||||
if c.Ctx.Input.Method() == http.MethodPost {
|
||||
obj, callbackResponse := api.JdAPI.GetOrderCallbackMsg(getUsefulRequest(c.Ctx))
|
||||
if callbackResponse == nil {
|
||||
callbackResponse = promotion.OnNewPromotionMsg(obj)
|
||||
if globals.EnableNewAct {
|
||||
callbackResponse = jd.OnActMsg(obj)
|
||||
} else {
|
||||
callbackResponse = promotion.OnNewPromotionMsg(obj)
|
||||
}
|
||||
}
|
||||
c.Data["json"] = c.transferResponse("SinglePromoteCreate", callbackResponse)
|
||||
c.ServeJSON()
|
||||
|
||||
Reference in New Issue
Block a user