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
a72a688a
Commit
a72a688a
authored
Oct 10, 2020
by
Mrs4s
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix vip song.
parent
1d7f1cc5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
coolq/bot.go
coolq/bot.go
+5
-1
coolq/cqcode.go
coolq/cqcode.go
+0
-3
No files found.
coolq/bot.go
View file @
a72a688a
...
@@ -153,7 +153,11 @@ func (bot *CQBot) SendGroupMessage(groupId int64, m *message.SendingMessage) int
...
@@ -153,7 +153,11 @@ func (bot *CQBot) SendGroupMessage(groupId int64, m *message.SendingMessage) int
return
0
return
0
}
}
if
i
,
ok
:=
elem
.
(
*
QQMusicElement
);
ok
{
if
i
,
ok
:=
elem
.
(
*
QQMusicElement
);
ok
{
ret
,
err
:=
bot
.
Client
.
SendGroupRichMessage
(
groupId
,
100497308
,
1
,
4
,
client
.
RichClientInfo
{
var
msgStyle
uint32
=
4
if
i
.
MusicUrl
==
""
{
msgStyle
=
0
// fix vip song
}
ret
,
err
:=
bot
.
Client
.
SendGroupRichMessage
(
groupId
,
100497308
,
1
,
msgStyle
,
client
.
RichClientInfo
{
Platform
:
1
,
Platform
:
1
,
SdkVersion
:
"0.0.0"
,
SdkVersion
:
"0.0.0"
,
PackageName
:
"com.tencent.qqmusic"
,
PackageName
:
"com.tencent.qqmusic"
,
...
...
coolq/cqcode.go
View file @
a72a688a
...
@@ -449,9 +449,6 @@ func (bot *CQBot) ToElement(t string, d map[string]string, group bool) (message.
...
@@ -449,9 +449,6 @@ func (bot *CQBot) ToElement(t string, d map[string]string, group bool) (message.
if
d
[
"content"
]
!=
""
{
if
d
[
"content"
]
!=
""
{
content
=
d
[
"content"
]
content
=
d
[
"content"
]
}
}
if
purl
==
""
{
purl
=
"https://www.baidu.com"
// fix vip song
}
return
&
QQMusicElement
{
MusicElement
:
MusicElement
{
return
&
QQMusicElement
{
MusicElement
:
MusicElement
{
Title
:
name
,
Title
:
name
,
Summary
:
content
,
Summary
:
content
,
...
...
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