From d40f5681423bd1011519d4d25ce1dcffba1a9c93 Mon Sep 17 00:00:00 2001 From: kira1928 Date: Fri, 28 Jul 2023 16:20:47 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DPlatform:=20freebsd,=20Arch:?= =?UTF-8?q?=20386,=20GoVersion:=201.19.11=20=E7=9A=84=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20(#508)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/live/yy/yy.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/live/yy/yy.go b/src/live/yy/yy.go index e0f0626a..9a15bdb0 100644 --- a/src/live/yy/yy.go +++ b/src/live/yy/yy.go @@ -101,8 +101,8 @@ func (l *Live) getRoomInfo() ([]byte, error) { roomid := paths[1] l.roomID = roomid - uid := 1125e4*rand.Int() + 4283717296 - tmp := &data{Id: roomid, Uid: strconv.Itoa(uid)} + uid := int64(1125e4*rand.Int()) + int64(4283717296) + tmp := &data{Id: roomid, Uid: strconv.FormatInt(int64(uid), 10)} tmpl, err := template.New("roomurlteml").Parse(roomInitUrl) if err != nil {