1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

fix url error.

This commit is contained in:
Mrs4s 2020-09-21 22:21:33 +08:00
parent b167195574
commit 4cd4770bb8

View File

@ -2,6 +2,7 @@ package message
import ( import (
"fmt" "fmt"
"github.com/Mrs4s/MiraiGo/binary"
"github.com/Mrs4s/MiraiGo/client/pb/msg" "github.com/Mrs4s/MiraiGo/client/pb/msg"
"strconv" "strconv"
"strings" "strings"
@ -132,7 +133,7 @@ func NewGroupImage(id string, md5 []byte, fid int64, size, width, height int32)
Size: size, Size: size,
Width: width, Width: width,
Height: height, Height: height,
Url: "http://gchat.qpic.cn/gchatpic_new/1/0-0-" + strings.ReplaceAll(id[1:36], "-", "") + "/0?term=2", Url: "http://gchat.qpic.cn/gchatpic_new/1/0-0-" + strings.ReplaceAll(binary.CalculateImageResourceId(md5)[1:37], "-", "") + "/0?term=2",
} }
} }