优化代码

This commit is contained in:
bxd
2023-09-27 14:53:07 +08:00
parent 4935ccc458
commit 3c46889c8c
6 changed files with 28 additions and 22 deletions

View File

@@ -5,7 +5,7 @@ import (
"net/http"
"gitee.com/baixudong/bson"
"gitee.com/baixudong/gson"
"github.com/tidwall/gjson"
)
@@ -47,7 +47,7 @@ func (obj *RequestOption) initHeaders() error {
obj.Headers = head
return nil
default:
jsonData, err := bson.Decode(headers)
jsonData, err := gson.Decode(headers)
if err != nil {
return err
}