Browse Source

update

master v0.5.4
lijianbin 2 years ago
parent
commit
e845674f4b
3 changed files with 7 additions and 6 deletions
  1. +1
    -1
      go.mod
  2. +2
    -2
      go.sum
  3. +4
    -3
      miniapp_qrcode.client_test.go

+ 1
- 1
go.mod View File

@ -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


+ 2
- 2
go.sum View File

@ -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=


+ 4
- 3
miniapp_qrcode.client_test.go View File

@ -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)


Loading…
Cancel
Save