enhance: resolve error on tencent cdn dupe deployment

优化:腾讯云cdn重复部署报错的问题
This commit is contained in:
Leo Chen
2024-10-27 23:48:52 +08:00
parent 9d4d14db06
commit 38dc8a63d9
2 changed files with 62 additions and 8 deletions

View File

@@ -195,3 +195,13 @@ func getDeployVariables(conf domain.DeployConfig) map[string]string {
return rs
}
// contains 检查字符串切片中是否包含指定的字符串
func contains(slice []string, item string) bool {
for _, s := range slice {
if s == item {
return true
}
}
return false
}