From 117cec7d008a1e7ebe5db79075fcb76f418ea187 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Thu, 28 Nov 2024 11:47:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=91=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/svc/advertising/svc_list.go | 1 + app/svc/cloud_bundle/svc_list.go | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/svc/advertising/svc_list.go b/app/svc/advertising/svc_list.go index 2f0bec6..c46b6ac 100644 --- a/app/svc/advertising/svc_list.go +++ b/app/svc/advertising/svc_list.go @@ -75,6 +75,7 @@ func Save(c *gin.Context) { } data.Name = req.Name data.Info = req.Info + data.Kind = utils.StrToInt(req.Kind) data.CountingDown = utils.StrToInt(req.CountingDown) db.Db.Where("id=?", data.Id).Update(data) e.OutSuc(c, "success", nil) diff --git a/app/svc/cloud_bundle/svc_list.go b/app/svc/cloud_bundle/svc_list.go index 765899f..33c3c13 100644 --- a/app/svc/cloud_bundle/svc_list.go +++ b/app/svc/cloud_bundle/svc_list.go @@ -11,6 +11,7 @@ import ( "code.fnuoos.com/EggPlanet/egg_models.git/src/model" "fmt" "github.com/gin-gonic/gin" + "github.com/syyongx/php2go" "io" "net/http" "strings" @@ -98,9 +99,9 @@ func Build(c *gin.Context) { domain := "" if cfg.Prd == false { masterKey = "dev" - domain = "" + domain = "http://ddstar.izhim.cn" } - url := "http://120.76.175.204:8080/job/" + keys + "/buildWithParameters?timestamp=" + utils.Int64ToStr(time.Now().Unix()) + "&token=" + token + "&branch=" + masterKey + "&domain=" + domain + url := "http://120.76.175.204:8080/job/" + keys + "/buildWithParameters?os=" + req.Os + "×tamp=" + utils.Int64ToStr(time.Now().Unix()) + "&token=" + token + "&branch=" + masterKey + "&domain=" + php2go.URLEncode(domain) tmp.Bit = strings.Join(req.Bit, ",") if req.Os == "2" { db.Db.Insert(&tmp)