Skip to content

Commit

Permalink
支持鲸云臻音、鲸云母带音质
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoMengXinX committed Apr 23, 2023
1 parent a107483 commit d63d88f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/songURL.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const SongUrlAPI = "/api/song/enhance/player/url/v1"
type SongURLConfig struct {
// EncodeType 编码类型, 可选 "mp3", "aac"
EncodeType string
// Level 音质等级, 可选 "lossless", "higher", "standard"
// Level 音质等级, 可选 "lossless", "higher", "standard", "hires", "jyeffect", "jymaster"
Level string
// Ids 歌曲 ID
Ids []int
Expand All @@ -36,7 +36,7 @@ func CreateSongURLJson(config SongURLConfig) string {
}
IDsJson, _ := json.Marshal(IDs)
if config.Level == "" {
config.Level = "lossless"
config.Level = "hires"
}
if config.EncodeType == "" {
config.EncodeType = "mp3"
Expand Down
3 changes: 1 addition & 2 deletions utils/request.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ func CreateNewRequest(data string, url string, options RequestData) (answer stri
req.Header.Set(v.Name, v.Value)
}

cookie["appver"] = "6.5.0"
cookie["versioncode"] = "164"
cookie["appver"] = "8.9.70"
cookie["buildver"] = strconv.FormatInt(time.Now().Unix(), 10)[0:10]
cookie["resolution"] = "1920x1080"
cookie["os"] = "android"
Expand Down

0 comments on commit d63d88f

Please sign in to comment.