Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
修改日志
Browse files Browse the repository at this point in the history
  • Loading branch information
LinkLeong committed Oct 1, 2021
1 parent 600de40 commit 518d2d8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions aliyun/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package aliyun
import (
"encoding/json"
"fmt"
"github.com/tidwall/gjson"
"go-aliyun-webdav/aliyun/cache"
"go-aliyun-webdav/aliyun/model"
"go-aliyun-webdav/aliyun/net"
"net/http"
"strconv"

"github.com/tidwall/gjson"
)

func GetList(token string, driveId string, parentFileId string) (model.FileListModel, error) {
Expand Down Expand Up @@ -155,9 +156,9 @@ func UpdateFileFolder(token string, driveId string, fileName string, parentFileI
// "resource": "file"
// }
createData := `{"drive_id": "` + driveId + `","parent_file_id": "` + parentFileId + `","name": "` + fileName + `","check_name_mode": "refuse","type": "folder"}`

rs := net.Post(model.APIFILEUPLOAD, token, []byte(createData))
fmt.Println(rs)
net.Post(model.APIFILEUPLOAD, token, []byte(createData))
// rs := net.Post(model.APIFILEUPLOAD, token, []byte(createData))
// fmt.Println(string(rs))
//正确返回占星显示
// {"parent_file_id":"60794ad941ee2d8d24f843b7a0ffd80279927dfc","type":"folder","file_id":"613caeb4d5b1ba9fb4604d4aa5aef2b408ab3121","domain_id":"bj29","drive_id":"1662258","file_name":"1SDSDSD.png","encrypt_mode":"none"}
//
Expand Down

0 comments on commit 518d2d8

Please sign in to comment.