Git Product home page Git Product logo

Comments (8)

royalrick avatar royalrick commented on June 15, 2024

先调用登陆接口,再进行解密操作。顺序反过来就会报错;

from weapp.

EthanChenLi avatar EthanChenLi commented on June 15, 2024

另外微信解密用户信息似乎不再返回openid了(官方文档也提示不返回了)。 DecryptUserInfo() 该方法的openid应该是拿不到了

from weapp.

royalrick avatar royalrick commented on June 15, 2024

image
看了下文档,仍然包含呢;

from weapp.

JiajunDou avatar JiajunDou commented on June 15, 2024

/root/go/pkg/mod/github.com/medivhzhan/weapp/[email protected]/encrypt/cbc.go:59 (0x6dc044)
(*CBC).Decrypt: cbc.iv = cbc.iv[:size]
/root/go/pkg/mod/github.com/medivhzhan/weapp/[email protected]/decrypt.go:28 (0x6dc88e)
(*Client).DecryptUserData: return encrypt.NewCBC(rawIV, key, cipher).Decrypt()
/root/go/pkg/mod/github.com/medivhzhan/weapp/[email protected]/decrypt.go:50 (0x6dc951)
(*Client).DecryptMobile: raw, err := cli.DecryptUserData(sessionKey, encryptedData, iv)

生产环境中将近1/4报这个错 这个是什么原因?

getUserInfo已经被抛弃了 你手册没有仔细看

from weapp.

royalrick avatar royalrick commented on June 15, 2024

报错的原因就是因为你先调用的获取手机号,再对用用户调用的登陆接口。顺序反了;

from weapp.

royalrick avatar royalrick commented on June 15, 2024

getUserInfo确实被取消了

from weapp.

voidint avatar voidint commented on June 15, 2024

官方文档中描述的获取手机号的接口发生了变化,目前的sdk好像没法拿到这个信息了。

from weapp.

royalrick avatar royalrick commented on June 15, 2024

@voidint 新版本v3.6.3已经增加,使用方式: cli.NewPhonenumber().GetPhoneNumber

from weapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.