diff --git a/app/hdl/hdl_home_page.go b/app/hdl/hdl_home_page.go index f80313d..eb0ff9e 100644 --- a/app/hdl/hdl_home_page.go +++ b/app/hdl/hdl_home_page.go @@ -151,11 +151,7 @@ func GetGrowData(c *gin.Context) { now := time.Now() dataDb := implement.NewPlatformGrowDataDb(db.Db) 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{ XData: xData, YData: yData, diff --git a/app/svc/notice/svc_notice.go b/app/svc/notice/svc_notice.go index 95f2bb2..cc3d45e 100644 --- a/app/svc/notice/svc_notice.go +++ b/app/svc/notice/svc_notice.go @@ -77,6 +77,7 @@ func Save(c *gin.Context) { data.UpdateAt = time.Now() data.Content = req.Content data.Type = req.Type + data.SmsCode = req.SmsCode data.Title = req.Title data.Day = utils.StrToInt(req.Day) data.NoticeDay = utils.StrToInt(req.NoticeDay) diff --git a/go.mod b/go.mod index 16903a9..256f202 100644 --- a/go.mod +++ b/go.mod @@ -33,7 +33,7 @@ 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/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