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