This commit is contained in:
李寻欢 2021-12-21 10:45:28 +08:00
parent 7aa790b5a3
commit 50403947b8
5 changed files with 11 additions and 13 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
txim
.idea

View File

@ -27,7 +27,7 @@ func Init(sdkAppID int, key, identifier string) {
}
func UserSig(identifier string, expire int) string {
sig, _ := tencentyun.GenSig(g.sdkAppID, g.key, identifier, expire)
sig, _ := tencentyun.GenUserSig(g.sdkAppID, g.key, identifier, expire)
return sig
}

View File

@ -6,7 +6,7 @@ import (
"os"
"strconv"
txim "github.com/xucx/txim/api"
txim "gitee.ltd/lxh/txim/api"
)
func main() {

7
go.mod
View File

@ -1,9 +1,8 @@
module github.com/xucx/txim
module gitee.ltd/lxh/txim
go 1.13
require (
github.com/imroc/req v0.3.0
github.com/tencentyun/tls-sig-api-v2-golang v1.0.0
gopkg.in/square/go-jose.v2 v2.5.0 // indirect
github.com/imroc/req v0.3.2
github.com/tencentyun/tls-sig-api-v2-golang v1.2.0
)

10
go.sum
View File

@ -1,6 +1,4 @@
github.com/imroc/req v0.3.0 h1:3EioagmlSG+z+KySToa+Ylo3pTFZs+jh3Brl7ngU12U=
github.com/imroc/req v0.3.0/go.mod h1:F+NZ+2EFSo6EFXdeIbpfE9hcC233id70kf0byW97Caw=
github.com/tencentyun/tls-sig-api-v2-golang v1.0.0 h1:NavMw9XO2iCLv8hTKaJW2kTaGR2SdNljMABbe39yu6Q=
github.com/tencentyun/tls-sig-api-v2-golang v1.0.0/go.mod h1:u7WiArmCTXTaQAHJwAOaLgpJ5e2xdY5/cgMEy3ubL60=
gopkg.in/square/go-jose.v2 v2.5.0 h1:OZ4sdq+Y+SHfYB7vfthi1Ei8b0vkP8ZPQgUfUwdUSqo=
gopkg.in/square/go-jose.v2 v2.5.0/go.mod h1:M9dMgbHiYLoDGQrXy7OpJDJWiKiU//h+vD76mk0e1AI=
github.com/imroc/req v0.3.2 h1:M/JkeU6RPmX+WYvT2vaaOL0K+q8ufL5LxwvJc4xeB4o=
github.com/imroc/req v0.3.2/go.mod h1:F+NZ+2EFSo6EFXdeIbpfE9hcC233id70kf0byW97Caw=
github.com/tencentyun/tls-sig-api-v2-golang v1.2.0 h1:N6hWlyY5HWa9QoezVVIIXi5TDZSyX+UvA8pn/tcezS4=
github.com/tencentyun/tls-sig-api-v2-golang v1.2.0/go.mod h1:D/i1nQrP1hSXxxz+SAmjaprAwH3EhYaktJG6BObWnFE=