Skip to content

Commit 9cf8996

Browse files
author
yutingzeng
committed
fix 使用变量名错误
1 parent 743a871 commit 9cf8996

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tencentyun/TLSSigAPI.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,11 @@ func genUserBuf(account string, dwSdkappid int, dwAuthID uint32,
9090
dwExpTime int, dwPrivilegeMap uint32, dwAccountType uint32, roomStr string) []byte {
9191

9292
offset := 0
93+
length := 1 + 2 + len(account) + 20 + len(roomStr)
94+
if len(roomStr) > 0 {
95+
length = length + 2
96+
}
9397

94-
length := 1 + 2 + len(account) + 22 + len(roomStr)
9598
userBuf := make([]byte, length)
9699

97100
//ver

0 commit comments

Comments
 (0)