🔥 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

@ -235,7 +235,11 @@ func (driver Shandian) Upload(file *model.FileStream, account *model.Account) er
"id": parentId,
"name": file.GetFileName(),
}
_, err = driver.Post("https://shandianpan.com/api/pan/upload", data, &resp, account)
res, err := driver.Post("https://shandianpan.com/api/pan/upload", data, nil, account)
if err != nil {
return err
}
err = utils.Json.Unmarshal(res, &resp)
if err != nil {
return err
}