From 50403947b8d3616293ba52a7cca44387e87bc451 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=AF=BB=E6=AC=A2?= Date: Tue, 21 Dec 2021 10:45:28 +0800 Subject: [PATCH] null --- .gitignore | 3 ++- api/api.go | 2 +- demo.go | 2 +- go.mod | 7 +++---- go.sum | 10 ++++------ 5 files changed, 11 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index 61da167..23d500e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -txim \ No newline at end of file +txim +.idea \ No newline at end of file diff --git a/api/api.go b/api/api.go index 4542d73..c38b5b4 100644 --- a/api/api.go +++ b/api/api.go @@ -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 } diff --git a/demo.go b/demo.go index 67a3992..7c10d2b 100644 --- a/demo.go +++ b/demo.go @@ -6,7 +6,7 @@ import ( "os" "strconv" - txim "github.com/xucx/txim/api" + txim "gitee.ltd/lxh/txim/api" ) func main() { diff --git a/go.mod b/go.mod index a92edfa..0bebf6c 100644 --- a/go.mod +++ b/go.mod @@ -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 ) diff --git a/go.sum b/go.sum index bdba5f3..d36e933 100644 --- a/go.sum +++ b/go.sum @@ -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=