Merge branch 'develop' into sk
This commit is contained in:
commit
d5cedb814e
|
@ -1,7 +1,5 @@
|
||||||
stages:
|
stages:
|
||||||
- lock
|
|
||||||
- build
|
- build
|
||||||
- unlock
|
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
GOPROXY: "https://goproxy.cn,direct"
|
GOPROXY: "https://goproxy.cn,direct"
|
||||||
|
@ -20,19 +18,6 @@ cache:
|
||||||
- ${GOPATH}/pkg/mod
|
- ${GOPATH}/pkg/mod
|
||||||
- ${GOPATH}/bin
|
- ${GOPATH}/bin
|
||||||
|
|
||||||
# 锁定作业,防止并发流水线执行
|
|
||||||
lock_job:
|
|
||||||
stage: lock
|
|
||||||
script:
|
|
||||||
- |
|
|
||||||
if [ -f /tmp/ci_lock_$CI_COMMIT_REF_NAME ]; then
|
|
||||||
echo "流水线($CI_COMMIT_REF_NAME)已在运行,等待..."
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
touch /tmp/ci_lock_$CI_COMMIT_REF_NAME
|
|
||||||
echo "获得锁定,开始流水线($CI_COMMIT_REF_NAME)。"
|
|
||||||
fi
|
|
||||||
|
|
||||||
build-job:
|
build-job:
|
||||||
stage: build
|
stage: build
|
||||||
only:
|
only:
|
||||||
|
@ -125,11 +110,3 @@ build-job:
|
||||||
# 触发部署
|
# 触发部署
|
||||||
- echo "触发部署"
|
- echo "触发部署"
|
||||||
- "curl -X POST --fail -F token=$SERVER_CI_TOKEN -F ref=release -F variables[ServerName]=$ServerName https://git.pogorockgames.com/api/v4/projects/31/trigger/pipeline"
|
- "curl -X POST --fail -F token=$SERVER_CI_TOKEN -F ref=release -F variables[ServerName]=$ServerName https://git.pogorockgames.com/api/v4/projects/31/trigger/pipeline"
|
||||||
|
|
||||||
# 解锁作业,释放锁定
|
|
||||||
unlock_job:
|
|
||||||
stage: unlock
|
|
||||||
script:
|
|
||||||
- rm -f /tmp/ci_lock_$CI_COMMIT_REF_NAME
|
|
||||||
- echo "释放锁定,流水线结束(/$CI_COMMIT_REF_NAME)。"
|
|
||||||
when: always
|
|
|
@ -41,7 +41,7 @@ const (
|
||||||
ThirteenWaterSceneWaitTimeout = time.Second * 2 //等待倒计时
|
ThirteenWaterSceneWaitTimeout = time.Second * 2 //等待倒计时
|
||||||
ThirteenWaterStartTimeout = time.Second * 3 //开始倒计时
|
ThirteenWaterStartTimeout = time.Second * 3 //开始倒计时
|
||||||
ThirteenWaterSendCardsTimeout = time.Second * 3 //开始发牌
|
ThirteenWaterSendCardsTimeout = time.Second * 3 //开始发牌
|
||||||
ThirteenWaterOptCardTimeout = time.Second * 45 //45选牌换牌
|
ThirteenWaterOptCardTimeout = time.Second * 47 //47选牌换牌
|
||||||
ThirteenWaterShowCardsTimeout = time.Second * 1 //轮流看牌时间
|
ThirteenWaterShowCardsTimeout = time.Second * 1 //轮流看牌时间
|
||||||
ThirteenWaterHitTimeout = time.Second * 2 //打枪
|
ThirteenWaterHitTimeout = time.Second * 2 //打枪
|
||||||
ThirteenWaterBilledTimeout = time.Second * 5 //结算
|
ThirteenWaterBilledTimeout = time.Second * 5 //结算
|
||||||
|
|
|
@ -1803,6 +1803,9 @@ func (this *Tournament) GetSCTMInfosPack(platform, channelName string) *tourname
|
||||||
}
|
}
|
||||||
tMInfo.SignupCostItem = signupCost
|
tMInfo.SignupCostItem = signupCost
|
||||||
}
|
}
|
||||||
|
if info.MatchTimeType == 0 {
|
||||||
|
tMInfo.MatchTimeStamp = []int64{}
|
||||||
|
}
|
||||||
pack.TMInfo = append(pack.TMInfo, tMInfo)
|
pack.TMInfo = append(pack.TMInfo, tMInfo)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue