@@ -151,11 +151,7 @@ func GetGrowData(c *gin.Context) { | |||||
now := time.Now() | now := time.Now() | ||||
dataDb := implement.NewPlatformGrowDataDb(db.Db) | dataDb := implement.NewPlatformGrowDataDb(db.Db) | ||||
m, has, err := dataDb.PlatformGrowDataGetLastOne() | m, has, err := dataDb.PlatformGrowDataGetLastOne() | ||||
if err != nil { | |||||
e.OutErr(c, e.ERR_DB_ORM, err.Error()) | |||||
return | |||||
} | |||||
if !has { | |||||
if err != nil || !has { | |||||
resp := md.GetPriceCurveResp{ | resp := md.GetPriceCurveResp{ | ||||
XData: xData, | XData: xData, | ||||
YData: yData, | YData: yData, | ||||
@@ -77,6 +77,7 @@ func Save(c *gin.Context) { | |||||
data.UpdateAt = time.Now() | data.UpdateAt = time.Now() | ||||
data.Content = req.Content | data.Content = req.Content | ||||
data.Type = req.Type | data.Type = req.Type | ||||
data.SmsCode = req.SmsCode | |||||
data.Title = req.Title | data.Title = req.Title | ||||
data.Day = utils.StrToInt(req.Day) | data.Day = utils.StrToInt(req.Day) | ||||
data.NoticeDay = utils.StrToInt(req.NoticeDay) | data.NoticeDay = utils.StrToInt(req.NoticeDay) | ||||
@@ -33,7 +33,7 @@ require ( | |||||
) | ) | ||||
require ( | require ( | ||||
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241210110912-1a6913ffbbc5 | |||||
code.fnuoos.com/EggPlanet/egg_models.git v0.2.1-0.20241210122203-4b6573d9eb25 | |||||
code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241205075006-9c0bf995c788 | code.fnuoos.com/EggPlanet/egg_system_rules.git v0.0.4-0.20241205075006-9c0bf995c788 | ||||
code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be | code.fnuoos.com/go_rely_warehouse/zyos_go_es.git v1.0.1-0.20241118083738-0f22da9ba0be | ||||
code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 | ||||