Skip to content

Commit

Permalink
修复额外参数$contat类型获取系统变量失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Dot-Liu committed Aug 25, 2023
1 parent f0137c9 commit ea67e63
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/plugins/extra-params_v2/dynamic-params/param.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,10 @@ func NewParam(name string, value []string) *Param {
position: position,
optional: true,
})
} else if vLen > 3 && v[0] == '$' && v[1] == '{' && v[vLen-1] == '}' {
} else if vLen > 1 && v[0] == '$' {
// 使用系统变量
vs = append(vs, &ParamValue{
key: v[2 : vLen-1],
key: v[1:],
position: positionSystem,
})
} else {
Expand Down

0 comments on commit ea67e63

Please sign in to comment.