mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-06 12:03:50 +08:00
fix: make lint happy
This commit is contained in:
parent
0ad74c6f2c
commit
7a001faf2f
@ -542,13 +542,13 @@ func (bot *CQBot) groupDecrease(groupCode, userUin int64, operator *client.Group
|
||||
}
|
||||
}
|
||||
|
||||
func (bot *CQBot) checkMedia(e []message.IMessageElement, sourceId int64) {
|
||||
func (bot *CQBot) checkMedia(e []message.IMessageElement, sourceID int64) {
|
||||
// TODO(wdvxdr): remove these old cache file in v1.0.0
|
||||
for _, elem := range e {
|
||||
switch i := elem.(type) {
|
||||
case *message.GroupImageElement:
|
||||
if i.Flash && sourceId != 0 {
|
||||
u, err := bot.Client.GetGroupImageDownloadUrl(i.FileId, sourceId, i.Md5)
|
||||
if i.Flash && sourceID != 0 {
|
||||
u, err := bot.Client.GetGroupImageDownloadUrl(i.FileId, sourceID, i.Md5)
|
||||
if err != nil {
|
||||
log.Warnf("获取闪照地址时出现错误: %v", err)
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user