- 禁止在老版活动上创建补贴表,迁移至新版,暂时保持活动表的兼容

This commit is contained in:
gazebo
2019-07-25 08:35:30 +08:00
parent 3eb2b1395a
commit db45cf2051
3 changed files with 19 additions and 3 deletions

View File

@@ -4,7 +4,6 @@ import (
"fmt"
"git.rosy.net.cn/jx-callback/business/jxutils"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/globals"
"github.com/astaxie/beego"
@@ -41,8 +40,8 @@ type PromotionController struct {
func (c *PromotionController) CreatePromotion() {
c.callCreatePromotion(func(params *tPromotionCreatePromotionParams) (retVal interface{}, errCode string, err error) {
if globals.EnableNewAct {
if params.VendorID == model.VendorIDJD {
return retVal, "", fmt.Errorf("请使用新版活动管理创建平台活动")
if true { //params.VendorID == model.VendorIDJD {
return retVal, "", fmt.Errorf("请使用新版活动管理创建活动")
}
}
beginAt, err := utils.TryStr2Time(params.BeginAt)