From 60bdf70cf2a88fe2d82214d5eacaf1e397337b39 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 10 Dec 2024 22:17:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/hdl/hdl_home_page.go | 6 +----- app/svc/notice/svc_notice.go | 1 + go.mod | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) 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