|
@@ -218,10 +218,11 @@ func Register(c *gin.Context) { |
|
|
} |
|
|
} |
|
|
//4、新增 MediumDivisionStrategy 记录 |
|
|
//4、新增 MediumDivisionStrategy 记录 |
|
|
MediumDivisionStrategyModel := model.MediumDivisionStrategy{ |
|
|
MediumDivisionStrategyModel := model.MediumDivisionStrategy{ |
|
|
MediumId: utils.StrToInt(mediumId), |
|
|
|
|
|
Uuid: utils.StrToInt(c.GetString("mid")), |
|
|
|
|
|
CreateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
|
|
UpdateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
|
|
|
|
|
MediumId: utils.StrToInt(mediumId), |
|
|
|
|
|
Uuid: utils.StrToInt(c.GetString("mid")), |
|
|
|
|
|
CreateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
|
|
UpdateAt: now.Format("2006-01-02 15:04:05"), |
|
|
|
|
|
MediaRevenueRate: 100, |
|
|
} |
|
|
} |
|
|
insertAffected, err = db.Db.Insert(&MediumDivisionStrategyModel) |
|
|
insertAffected, err = db.Db.Insert(&MediumDivisionStrategyModel) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|