From ea67e63dc7e70369c62c948b1582aff13ac811d6 Mon Sep 17 00:00:00 2001 From: Liujian <824010343@qq.com> Date: Sat, 26 Aug 2023 01:53:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A2=9D=E5=A4=96=E5=8F=82?= =?UTF-8?q?=E6=95=B0$contat=E7=B1=BB=E5=9E=8B=E8=8E=B7=E5=8F=96=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E5=8F=98=E9=87=8F=E5=A4=B1=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- drivers/plugins/extra-params_v2/dynamic-params/param.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/plugins/extra-params_v2/dynamic-params/param.go b/drivers/plugins/extra-params_v2/dynamic-params/param.go index 649cd947..1afbf4f7 100644 --- a/drivers/plugins/extra-params_v2/dynamic-params/param.go +++ b/drivers/plugins/extra-params_v2/dynamic-params/param.go @@ -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 {