From e845674f4bd432c1f69921c31608fe633c14639c Mon Sep 17 00:00:00 2001 From: lijianbin <513837235@.qq.com> Date: Fri, 10 Dec 2021 16:25:30 +0800 Subject: [PATCH] update --- go.mod | 2 +- go.sum | 4 ++-- miniapp_qrcode.client_test.go | 7 ++++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/go.mod b/go.mod index 1a5dae4..cdb376c 100644 --- a/go.mod +++ b/go.mod @@ -3,9 +3,9 @@ module git.tetele.net/tgo/weixinrpc go 1.14 require ( - git.tetele.net/yueheng/conf v1.2.4 git.tetele.net/tgo/crypter v0.2.2 git.tetele.net/tgo/helper v0.2.6 + git.tetele.net/yueheng/conf v1.2.4 github.com/chai2010/protorpc v1.1.3 github.com/golang/protobuf v1.0.0 golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 // indirect diff --git a/go.sum b/go.sum index fcd4120..5b0f727 100644 --- a/go.sum +++ b/go.sum @@ -1,9 +1,9 @@ -git.tetele.net/yueheng/conf v0.39.3 h1:yjeJKmOHMJUeRl5Q3FVCLjIdIcor7UkohycyM87cGng= -git.tetele.net/yueheng/conf v0.39.3/go.mod h1:AWVIBEDE5dtotthUgR0SWaR2Qa6/f+O5WQ3s7Tj8q7A= git.tetele.net/tgo/crypter v0.2.2 h1:YMQJh2Gj5Po4ZfelJUmXBKi01UbmtiSy3bmqRfnYQMo= git.tetele.net/tgo/crypter v0.2.2/go.mod h1:vfvRLZA8+lHNgNXneOcgvVhDyuv25ZRb+C6xHOmXNx0= git.tetele.net/tgo/helper v0.2.6 h1:JC+N+If/bGvcwuUSklva17YDNtKBV2Qpvl5RQpMySOY= git.tetele.net/tgo/helper v0.2.6/go.mod h1:89mQwyfqZ+t8YXiVwzSxA70gLlUNqoZGDEUxvV46jXk= +git.tetele.net/yueheng/conf v1.2.4 h1:QQr6yflZa9PjISTyNDBL25qOmkRYR06BCJJWWagETQI= +git.tetele.net/yueheng/conf v1.2.4/go.mod h1:qRujMTqjMByvdC05qdfscZMFRKM5XA1qbtz4rnFyStY= github.com/chai2010/protorpc v1.1.3 h1:VJK5hIoZn0XCGol0GmbxZkUG6FbTI5LP2Lam6RVd15w= github.com/chai2010/protorpc v1.1.3/go.mod h1:/wO0kiyVdu7ug8dCMrA2yDr2vLfyhsLEuzLa9J2HJ+I= github.com/golang/protobuf v1.0.0 h1:lsek0oXi8iFE9L+EXARyHIjU5rlWIhhTkjDz3vHhWWQ= diff --git a/miniapp_qrcode.client_test.go b/miniapp_qrcode.client_test.go index cacbfa9..c490d94 100644 --- a/miniapp_qrcode.client_test.go +++ b/miniapp_qrcode.client_test.go @@ -5,16 +5,17 @@ import ( ) func Test_GetMiniappCode(t *testing.T){ + site_id := "1198881" appid := "wx3d53ccbaf69f7995" appSecret := "165983626235636be54a16404e3e70a7" page := "" - scene := "user_id=2" + scene := "user_id=19" qrcodeParams := map[string]interface{}{ "page":page, "scene":scene, - "is_hyaline":true, + // "is_hyaline":true, } - qrcode,err := GetMiniAppQrcode(appid,appSecret,qrcodeParams) + qrcode,err := GetMiniAppQrcode(site_id,appid,appSecret,qrcodeParams) t.Log(qrcode) t.Log(err)