aa
This commit is contained in:
@@ -341,7 +341,7 @@ type UserInfoWithWeixin struct {
|
|||||||
// @router /GetUserByMiniInfo [post]
|
// @router /GetUserByMiniInfo [post]
|
||||||
func (c *Auth2Controller) GetUserByMiniInfo() {
|
func (c *Auth2Controller) GetUserByMiniInfo() {
|
||||||
c.callGetUserByMiniInfo(func(params *tAuth2GetUserByMiniInfoParams) (retVal interface{}, errCode string, err error) {
|
c.callGetUserByMiniInfo(func(params *tAuth2GetUserByMiniInfoParams) (retVal interface{}, errCode string, err error) {
|
||||||
authInfo := &auth2.AuthInfo{}
|
authInfo, err := params.Ctx.GetV2AuthInfo()
|
||||||
if err == nil {
|
if err == nil {
|
||||||
decryptedDataBase64, err2 := weixin.AutherObjMini.DecryptData(authInfo, GetComposedCode(&c.Controller, params.JsCode), params.Data, params.Iv)
|
decryptedDataBase64, err2 := weixin.AutherObjMini.DecryptData(authInfo, GetComposedCode(&c.Controller, params.JsCode), params.Data, params.Iv)
|
||||||
if err = err2; err == nil {
|
if err = err2; err == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user