Browse Source

个性化

master
huangjiajun 1 day ago
parent
commit
0eb6c4937b
2 changed files with 10 additions and 9 deletions
  1. +2
    -0
      app/md/md_module.go
  2. +8
    -9
      app/svc/cloud_bundle/svc_list.go

+ 2
- 0
app/md/md_module.go View File

@@ -14,6 +14,7 @@ var Module = map[string]string{
"11": "qualification_certificate",
"12": "withdraw",
"13": "withdraw_account",
"14": "user_real_name",
}
var ModuleList = []map[string]interface{}{
{"name": "首页", "mod_name": "home_page", "value": "1"},
@@ -29,4 +30,5 @@ var ModuleList = []map[string]interface{}{
{"name": "资质证书", "mod_name": "qualification_certificate", "value": "11"},
{"name": "提现页", "mod_name": "withdraw", "value": "12"},
{"name": "提现到账户", "mod_name": "withdraw_account", "value": "13"},
{"name": "实名认证", "mod_name": "user_real_name", "value": "14"},
}

+ 8
- 9
app/svc/cloud_bundle/svc_list.go View File

@@ -107,9 +107,9 @@ func Build(c *gin.Context) {
NewBit: strings.Join(req.Bit, ","),
}
//TODO 调用打包机
keys := "CloudBuild"
keys := "ddxq-android"
if req.Os == "2" {
keys = "CloudBuild-iOS"
keys = "%E8%9B%8B%E8%9B%8B%E6%98%9F%E7%90%83-iOS"
}
token := "aaaaaa"
masterKey := "master"
@@ -118,26 +118,25 @@ func Build(c *gin.Context) {
masterKey = "dev"
domain = "http://ddstar.izhim.cn"
}
url := "http://120.76.175.204:8080/job/" + keys + "/buildWithParameters?platform=" + tmp.NewPlatform + "&os=" + req.Os + "&timestamp=" + utils.Int64ToStr(time.Now().Unix()) + "&token=" + token + "&branch=" + masterKey + "&domain=" + php2go.URLEncode(domain)
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, ",")
if req.Os == "2" {
db.Db.Insert(&tmp)
url += "&id=" + utils.IntToStr(tmp.Id)
url += "&ios_id=" + utils.IntToStr(tmp.Id)
getcurl(url)
} else {
if req.IsCombine != "1" {
for _, v := range req.Bit {
newUrl := url
ids := make([]string, 0)
for _, v1 := range req.Platform {
tmp1 := tmp
tmp1.Bit = v
tmp1.Platform = v1
db.Db.Insert(&tmp1)
ids = append(ids, utils.IntToStr(tmp1.Id))
newUrl := url
newUrl += "&bit=" + v + "&android_id=" + utils.IntToStr(tmp1.Id)
getcurl(newUrl)
}
newUrl += "&bit=" + v + "&id=" + strings.Join(ids, ",")
getcurl(newUrl)

}

} else {


Loading…
Cancel
Save