From 110e7ace48904a1cc69decdb656f74bd82e6b72f Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Thu, 23 Sep 2021 09:25:10 +0800 Subject: [PATCH] update --- core/reply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/reply.go b/core/reply.go index 679f7d9..06c868b 100644 --- a/core/reply.go +++ b/core/reply.go @@ -100,7 +100,7 @@ func InitReplies() { for _, re := range regexp.MustCompile(`gjson[(][^()]+[)]`).FindAllStringSubmatch(reply.Request.Template, -1) { v := re[0] fmt.Println(v) - get := strings.TrimLeft(strings.TrimRight(v, ")"), "gjson(") + get := strings.Replace(strings.TrimRight(v, ")"), "gjson(", "", -1) fmt.Println(get) f, _ := jsonparser.GetString(data, strings.Split(get, ".")...) fmt.Println(f)