diff --git a/transport/v1/http/response.go b/transport/v1/http/response.go index 6460fd9..45520bd 100644 --- a/transport/v1/http/response.go +++ b/transport/v1/http/response.go @@ -107,7 +107,7 @@ func (t *Transport) ResponseEncoderWithEncrypt() http.EncodeResponseFunc { if t.env == enum.Env_Production { ecbMsg, err := sm4.Sm4Ecb([]byte(t.sm4Key), data, true) if err == nil { - dataRes = hex.EncodeToString(ecbMsg) + dataRes = fmt.Sprintf("\"%s\"", hex.EncodeToString(ecbMsg)) w.Header().Set("en", "4") } }