Browse Source

打包配置

master
huangjiajun 1 week ago
parent
commit
72c1499b40
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      app/svc/cloud_bundle/svc_base.go

+ 5
- 1
app/svc/cloud_bundle/svc_base.go View File

@@ -9,6 +9,7 @@ import (
"code.fnuoos.com/EggPlanet/egg_models.git/src/implement"
"encoding/json"
"github.com/gin-gonic/gin"
"time"
)

func Base(c *gin.Context) {
@@ -59,7 +60,10 @@ func UpdateState(c *gin.Context) {
if req.BuildId != "" {
data.BuildId = req.BuildId
}
db.Db.Where("id=?", data.Id).Cols("build_id,build_number,error_msg,state,src").Update(data)
if data.State == 999 {
data.FinishAt = int(time.Now().Unix())
}
db.Db.Where("id=?", data.Id).Cols("finish_at,build_id,build_number,error_msg,state,src").Update(data)
e.OutSuc(c, "success", nil)
return
}

Loading…
Cancel
Save