+ globals.EnableNewAct

This commit is contained in:
gazebo
2019-07-15 14:19:38 +08:00
parent 82ad1ed0cc
commit 598a9738e8
4 changed files with 21 additions and 2 deletions

View File

@@ -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()