Browse Source

打包

master
huangjiajun 1 day ago
parent
commit
b206d33810
1 changed files with 5 additions and 11 deletions
  1. +5
    -11
      app/svc/cloud_bundle/svc_list.go

+ 5
- 11
app/svc/cloud_bundle/svc_list.go View File

@@ -113,10 +113,9 @@ func Build(c *gin.Context) {
}
token := "aaaaaa"
masterKey := "master"
domain := ""
domain := svc.GetSysCfgStr("admin_host")
if cfg.Prd == false {
masterKey = "dev"
domain = "http://ddstar.izhim.cn"
}
url := "http://120.76.175.204:8080/job/" + keys + "/buildWithParameters?version=" + req.Version + "&timestamp=" + utils.Int64ToStr(time.Now().Unix()) + "&token=" + token + "&branch=" + masterKey + "&domain=" + php2go.URLEncode(domain)
tmp.Bit = strings.Join(req.Bit, ",")
@@ -133,31 +132,26 @@ func Build(c *gin.Context) {
tmp1.Platform = v1
db.Db.Insert(&tmp1)
newUrl := url
newUrl += "&bit=" + v + "&android_id=" + utils.IntToStr(tmp1.Id)
newUrl += "&channel=" + v1 + "&&bit=" + v + "&android_id=" + utils.IntToStr(tmp1.Id)
getcurl(newUrl)
}

}

} else {
ids := make([]string, 0)
for _, v1 := range req.Platform {
tmp1 := tmp
tmp1.Platform = v1
db.Db.Insert(&tmp1)
url += "&id=" + utils.IntToStr(tmp1.Id)
getcurl(url)
newUrl := url
newUrl += "&channel=" + v1 + "&bit=" + strings.Join(req.Bit, ",") + "&android_id=" + utils.IntToStr(tmp1.Id)
getcurl(newUrl)
}
url += "&bit=" + strings.Join(req.Bit, ",") + "&id=" + strings.Join(ids, ",")
getcurl(url)
}
}

e.OutSuc(c, "success", nil)
return
}
func getcurl(url string) (string, error) {
return "", nil
client := &http.Client{}
// 创建请求
request, err := http.NewRequest("GET", url, nil)


Loading…
Cancel
Save