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
bcdbefb3
Commit
bcdbefb3
authored
Aug 30, 2020
by
scjtqs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
go fmt
parent
fc18b84d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
global/net.go
global/net.go
+6
-6
server/http.go
server/http.go
+0
-1
No files found.
global/net.go
View file @
bcdbefb3
...
@@ -44,12 +44,12 @@ func QQMusicSongInfo(id string) (gjson.Result, error) {
...
@@ -44,12 +44,12 @@ func QQMusicSongInfo(id string) (gjson.Result, error) {
return
gjson
.
ParseBytes
(
d
)
.
Get
(
"songinfo.data"
),
nil
return
gjson
.
ParseBytes
(
d
)
.
Get
(
"songinfo.data"
),
nil
}
}
func
NewXmlMsg
(
template
string
,
ResId
int64
)
*
message
.
ServiceElement
{
func
NewXmlMsg
(
template
string
,
ResId
int64
)
*
message
.
ServiceElement
{
var
serviceid
string
var
serviceid
string
if
ResId
==
0
{
if
ResId
==
0
{
serviceid
=
"2"
//默认值2
serviceid
=
"2"
//默认值2
}
else
{
}
else
{
serviceid
=
strconv
.
FormatInt
(
ResId
,
10
)
serviceid
=
strconv
.
FormatInt
(
ResId
,
10
)
}
}
//println(serviceid)
//println(serviceid)
return
&
message
.
ServiceElement
{
return
&
message
.
ServiceElement
{
...
@@ -60,7 +60,7 @@ func NewXmlMsg(template string,ResId int64) *message.ServiceElement{
...
@@ -60,7 +60,7 @@ func NewXmlMsg(template string,ResId int64) *message.ServiceElement{
}
}
}
}
func
NewJsonMsg
(
template
string
)
*
message
.
ServiceElement
{
func
NewJsonMsg
(
template
string
)
*
message
.
ServiceElement
{
return
&
message
.
ServiceElement
{
return
&
message
.
ServiceElement
{
Id
:
1
,
Id
:
1
,
Content
:
template
,
Content
:
template
,
...
...
server/http.go
View file @
bcdbefb3
...
@@ -400,7 +400,6 @@ func getParamOrDefault(c *gin.Context, k, def string) string {
...
@@ -400,7 +400,6 @@ func getParamOrDefault(c *gin.Context, k, def string) string {
return
def
return
def
}
}
func
getParam
(
c
*
gin
.
Context
,
k
string
)
string
{
func
getParam
(
c
*
gin
.
Context
,
k
string
)
string
{
p
,
_
:=
getParamWithType
(
c
,
k
)
p
,
_
:=
getParamWithType
(
c
,
k
)
return
p
return
p
...
...
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