Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
U
UnblockNeteaseMusic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror From Github
UnblockNeteaseMusic
Commits
000dabf1
Commit
000dabf1
authored
4 years ago
by
Silvan
Browse files
Options
Downloads
Patches
Plain Diff
fix hand-shaking code
parent
7664b2b5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
processor/processor.go
+2
-1
2 additions, 1 deletion
processor/processor.go
with
2 additions
and
1 deletion
processor/processor.go
+
2
−
1
View file @
000dabf1
...
@@ -58,7 +58,7 @@ var (
...
@@ -58,7 +58,7 @@ var (
"/api/song/enhance/privilege"
:
1
,
"/api/song/enhance/privilege"
:
1
,
}
}
// "header key" : { "contain value":"protocol"}
// "header key" : { "contain value":"protocol"}
ReRulesUnderHeader
=
map
[
string
]
map
[
string
]
string
{
"os"
:
{
"pc"
:
"http
s
"
}}
ReRulesUnderHeader
=
map
[
string
]
map
[
string
]
string
{
"os"
:
{
"pc"
:
"http"
}}
)
)
type
Netease
struct
{
type
Netease
struct
{
...
@@ -523,6 +523,7 @@ func processMapJson(jsonMap common.MapType) bool {
...
@@ -523,6 +523,7 @@ func processMapJson(jsonMap common.MapType) bool {
func
generateEndpoint
(
netease
*
Netease
)
string
{
func
generateEndpoint
(
netease
*
Netease
)
string
{
protocol
:=
"https"
protocol
:=
"https"
endPoint
:=
"://music.163.com/unblockmusic/"
endPoint
:=
"://music.163.com/unblockmusic/"
//fmt.Println(fmt.Sprintf("%+v\n", netease.Params))
if
headerIntf
,
ok
:=
netease
.
Params
[
"header"
];
ok
{
if
headerIntf
,
ok
:=
netease
.
Params
[
"header"
];
ok
{
header
:=
make
(
map
[
string
]
interface
{})
header
:=
make
(
map
[
string
]
interface
{})
if
headerStr
,
ok
:=
headerIntf
.
(
string
);
ok
{
if
headerStr
,
ok
:=
headerIntf
.
(
string
);
ok
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment