Skip to content

Commit

Permalink
更新api版本
Browse files Browse the repository at this point in the history
  • Loading branch information
XiaoMengXinX committed Oct 16, 2021
1 parent 52737ad commit 5744c03
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 21 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ $ ./Fuck163MusicTasks
{
"Cookies": [ // 至少填入一个用户的 MUSIC_U, 支持多用户及多 Cookie
{
"key": "MUSIC_U",
"value": "USER_1_MUSIC_U"
"Name": "MUSIC_U",
"Value": "USER_1_MUSIC_U"
}
]
},
{
"Cookies": [
{
"key": "MUSIC_U",
"value": "USER_2_MUSIC_U"
"Name": "MUSIC_U",
"Value": "USER_2_MUSIC_U"
}
]
}
Expand Down
8 changes: 4 additions & 4 deletions config_example.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
{
"Cookies": [
{
"key": "MUSIC_U",
"value": "USER_1_MUSIC_U"
"Name": "MUSIC_U",
"Value": "USER_1_MUSIC_U"
}
]
},
{
"Cookies": [
{
"key": "MUSIC_U",
"value": "USER_2_MUSIC_U"
"Name": "MUSIC_U",
"Value": "USER_2_MUSIC_U"
}
]
}
Expand Down
9 changes: 0 additions & 9 deletions go.mod

This file was deleted.

4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github.com/XiaoMengXinX/Music163Api-Go v0.1.1 h1:zm//t9uPPcFwdrU2vjVL79dbbcq2pPdNs6FvUzrYVzE=
github.com/XiaoMengXinX/Music163Api-Go v0.1.1/go.mod h1:OOYCjlzn6o8+9avrp5fiOIRQotqIdC2X8NqM05s8fHI=
github.com/XiaoMengXinX/Music163Api-Go v0.1.9 h1:6sp0YIVqNYOmuig+ErtLvPMkwqPPc5ILEZ1lz+aV0xM=
github.com/XiaoMengXinX/Music163Api-Go v0.1.9/go.mod h1:OOYCjlzn6o8+9avrp5fiOIRQotqIdC2X8NqM05s8fHI=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
Expand Down
6 changes: 4 additions & 2 deletions types.go
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
package main

import util "github.com/XiaoMengXinX/Music163Api-Go/utils"
import (
"net/http"
)

// Config 配置文件结构
type Config struct {
NeteaseAPI string `json:"NeteaseAPI"`
DEBUG bool `json:"DEBUG"`
Users []struct {
Cookies util.Cookies `json:"Cookies"`
Cookies []*http.Cookie `json:"Cookies"`
} `json:"Users"`
EventSendConfig struct {
LagConfig LagConfig `json:"LagConfig"`
Expand Down

0 comments on commit 5744c03

Please sign in to comment.