Browse Source

云打包

master
huangjiajun 3 days ago
parent
commit
117cec7d00
2 changed files with 4 additions and 2 deletions
  1. +1
    -0
      app/svc/advertising/svc_list.go
  2. +3
    -2
      app/svc/cloud_bundle/svc_list.go

+ 1
- 0
app/svc/advertising/svc_list.go View File

@@ -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)


+ 3
- 2
app/svc/cloud_bundle/svc_list.go View File

@@ -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 + "&timestamp=" + 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)


Loading…
Cancel
Save