|
@@ -210,9 +210,10 @@ func UpdateEggEnergyBasic(c *gin.Context) { |
|
|
NewUserIncentiveRules: newUserIncentiveRulesStr, |
|
|
NewUserIncentiveRules: newUserIncentiveRulesStr, |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
forceColums := []string{"is_open", "video_reward_is_open"} |
|
|
energyBasicSettingDb := implement.NewEggEnergyBasicSettingDb(db.Db) |
|
|
energyBasicSettingDb := implement.NewEggEnergyBasicSettingDb(db.Db) |
|
|
session := db.Db.NewSession() |
|
|
session := db.Db.NewSession() |
|
|
affected, err := energyBasicSettingDb.EggEnergyBasicSettingUpdate(session, req.SystemID, &m) |
|
|
|
|
|
|
|
|
affected, err := energyBasicSettingDb.EggEnergyBasicSettingUpdate(session, req.SystemID, &m, forceColums...) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
e.OutErr(c, e.ERR_DB_ORM, err.Error()) |
|
|
return |
|
|
return |
|
|