Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
G
go-cqhttp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
go-cqhttp
Commits
a455aeea
Commit
a455aeea
authored
Aug 31, 2020
by
scjtqs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉不需要的方法
parent
710a8588
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
global/net.go
global/net.go
+0
-26
No files found.
global/net.go
View file @
a455aeea
...
@@ -4,11 +4,9 @@ import (
...
@@ -4,11 +4,9 @@ import (
"bytes"
"bytes"
"compress/gzip"
"compress/gzip"
"fmt"
"fmt"
"github.com/Mrs4s/MiraiGo/message"
"github.com/tidwall/gjson"
"github.com/tidwall/gjson"
"io/ioutil"
"io/ioutil"
"net/http"
"net/http"
"strconv"
"strings"
"strings"
)
)
...
@@ -53,27 +51,3 @@ func NeteaseMusicSongInfo(id string) (gjson.Result, error) {
...
@@ -53,27 +51,3 @@ func NeteaseMusicSongInfo(id string) (gjson.Result, error) {
return
gjson
.
ParseBytes
(
d
)
.
Get
(
"songs.0"
),
nil
return
gjson
.
ParseBytes
(
d
)
.
Get
(
"songs.0"
),
nil
}
}
func
NewXmlMsg
(
template
string
,
ResId
int64
)
*
message
.
ServiceElement
{
var
serviceid
string
if
ResId
==
0
{
serviceid
=
"2"
//默认值2
}
else
{
serviceid
=
strconv
.
FormatInt
(
ResId
,
10
)
}
//println(serviceid)
return
&
message
.
ServiceElement
{
Id
:
int32
(
ResId
),
Content
:
template
,
ResId
:
serviceid
,
SubType
:
"xml"
,
}
}
func
NewJsonMsg
(
template
string
)
*
message
.
ServiceElement
{
return
&
message
.
ServiceElement
{
Id
:
1
,
Content
:
template
,
ResId
:
"1"
,
SubType
:
"json"
,
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment