xuzhiheng 2 years ago
parent
commit
fe490c2838
1 changed files with 4 additions and 2 deletions
  1. 4 2
      core/proxy/broker/outServer/SussBi.go

+ 4 - 2
core/proxy/broker/outServer/SussBi.go

@@ -5,6 +5,7 @@ import (
 	"fmt"
 	"io"
 	"io/ioutil"
+	"log"
 	"net/http"
 	"net/http/cookiejar"
 	"net/url"
@@ -85,9 +86,10 @@ func InitSussBi(config map[string]interface{}) (*sussBi, error) {
 				})
 			}
 		}
-		if replaceMap := gconv.Map(settingMap["match"]); replaceMap != nil && len(replaceMap) > 0 {
+		replaceMap := gconv.Map(settingMap["match"])
+		if replaceMap != nil && len(replaceMap) > 0 {
 			for k, v := range replaceMap {
-				pr.Match = append(pr.Replace, ParamReplaceSetting{
+				pr.Match = append(pr.Match, ParamReplaceSetting{
 					Key:   k,
 					Value: gconv.String(v),
 				})