🔥 replace encoding/json with jsoniter

This commit is contained in:
微凉
2022-01-03 20:25:22 +08:00
parent 7cf30836bf
commit beb06f2f7f
6 changed files with 18 additions and 16 deletions

View File

@ -10,7 +10,6 @@ import (
"crypto/x509"
"encoding/base64"
"encoding/hex"
"encoding/json"
"encoding/pem"
"errors"
"fmt"
@ -158,7 +157,7 @@ func (driver Cloud189) Login(account *model.Account) error {
if err != nil {
return err
}
err = json.Unmarshal(res.Body(), &loginResp)
err = utils.Json.Unmarshal(res.Body(), &loginResp)
if err != nil {
log.Error(err.Error())
return err